Don't URI-encode scopes when posting in oauth2 password flow

This commit is contained in:
Jeremy Epstein
2017-10-29 12:04:43 +11:00
parent 4eae9b681b
commit a5193a5b5b

View File

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