浏览代码

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

Don't URI-encode scopes when posting in oauth2 password flow
bubble
kyle 6 年前
committed by GitHub
父节点
当前提交
b740eee286
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/core/plugins/auth/actions.js

+ 1
- 1
src/core/plugins/auth/actions.js 查看文件

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


正在加载...
取消
保存