Client - add PKCE support when authorizing an app

This commit is contained in:
Sam
2022-08-03 16:34:36 +02:00
parent 922ff63d99
commit b96a682eb8
3 changed files with 18 additions and 2 deletions

View File

@ -43,6 +43,12 @@ export const actions: ActionTree<IOAuth2State, IRootState> & IOAuth2Actions = {
if (payload.state) {
form.set('state', payload.state)
}
if (payload.code_challenge) {
form.set('code_challenge', payload.code_challenge)
}
if (payload.code_challenge_method) {
form.set('code_challenge_method', payload.code_challenge_method)
}
authApi
.post('oauth/authorize', form, {