Pārlūkot izejas kodu

Merge pull request #3840 from Jaza/uri-encoded-scopes-fix

Don't URI-encode scopes when posting in oauth2 password flow
bubble
kyle pirms 6 gadiem
committed by GitHub
vecāks
revīzija
b740eee286
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/core/plugins/auth/actions.js

+ 1
- 1
src/core/plugins/auth/actions.js Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt