Encode custom oauth2 URL params (#13373)

Co-authored-by: Rodrigo Nascimento <rodrigoknascimento@gmail.com>
pull/16421/head^2
Bas 5 years ago committed by GitHub
parent 9c8bcda887
commit da81cb0b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/custom-oauth/client/custom_oauth_client.js

@ -93,8 +93,8 @@ export class CustomOAuth {
}${ separator }client_id=${ config.clientId
}&redirect_uri=${ encodeURIComponent(OAuth._redirectUri(this.name, config))
}&response_type=code`
+ `&state=${ OAuth._stateParam(loginStyle, credentialToken, options.redirectUrl)
}&scope=${ this.scope }`;
+ `&state=${ encodeURIComponent(OAuth._stateParam(loginStyle, credentialToken, options.redirectUrl))
}&scope=${ encodeURIComponent(this.scope) }`;
OAuth.launchLogin({
loginService: this.name,

Loading…
Cancel
Save