Skip to content

Commit 0bc382b

Browse files
committed
Fix oauth2 password flow
fix filed name for scope of grant request body.
1 parent 904d3ec commit 0bc382b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/plugins/auth/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const authorizePassword = ( auth ) => ( { authActions } ) => {
7373
let { schema, name, username, password, passwordType, clientId, clientSecret } = auth
7474
let form = {
7575
grant_type: "password",
76-
scopes: encodeURIComponent(auth.scopes.join(scopeSeparator))
76+
scope: encodeURIComponent(auth.scopes.join(scopeSeparator))
7777
}
7878
let query = {}
7979
let headers = {}

0 commit comments

Comments
 (0)