Merge pull request #3840 from Jaza/uri-encoded-scopes-fix

Don't URI-encode scopes when posting in oauth2 password flow
This commit is contained in:
kyle
2017-11-17 21:05:19 -08:00
committed by GitHub

View File

@@ -73,7 +73,7 @@ export const authorizePassword = ( auth ) => ( { authActions } ) => {
let { schema, name, username, password, passwordType, clientId, clientSecret } = auth
let form = {
grant_type: "password",
scope: encodeURIComponent(auth.scopes.join(scopeSeparator))
scope: auth.scopes.join(scopeSeparator)
}
let query = {}
let headers = {}