Fix oauth2 password flow

fix filed name for scope of grant request body.
This commit is contained in:
TANAKA Koichi
2017-07-18 16:52:29 +09:00
parent 904d3ece8e
commit 0bc382b78a

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 = {}