Skip to content

Commit b740eee

Browse files
authored
Merge pull request #3840 from Jaza/uri-encoded-scopes-fix
Don't URI-encode scopes when posting in oauth2 password flow
2 parents 0d2dbae + 1d28639 commit b740eee

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-
scope: encodeURIComponent(auth.scopes.join(scopeSeparator))
76+
scope: auth.scopes.join(scopeSeparator)
7777
}
7878
let query = {}
7979
let headers = {}

0 commit comments

Comments
 (0)