Merge pull request #3404 from MugeSo/fix-oauth2-password-flow

Fix oauth2 password flow
This commit is contained in:
shockey
2017-07-20 16:56:26 -07: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",
scopes: encodeURIComponent(auth.scopes.join(scopeSeparator))
scope: encodeURIComponent(auth.scopes.join(scopeSeparator))
}
let query = {}
let headers = {}