Unverified Commit 74887baa authored by myml's avatar myml Committed by GitHub

feat(auth): OAuth2 scope support (#5181)

parent 8dcbc18a
...@@ -17,7 +17,8 @@ module.exports = { ...@@ -17,7 +17,8 @@ module.exports = {
clientSecret: conf.clientSecret, clientSecret: conf.clientSecret,
userInfoURL: conf.userInfoURL, userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL, callbackURL: conf.callbackURL,
passReqToCallback: true passReqToCallback: true,
scope: conf.scope
}, async (req, accessToken, refreshToken, profile, cb) => { }, async (req, accessToken, refreshToken, profile, cb) => {
try { try {
const user = await WIKI.models.users.processProfile({ const user = await WIKI.models.users.processProfile({
......
...@@ -59,3 +59,8 @@ props: ...@@ -59,3 +59,8 @@ props:
title: Logout URL title: Logout URL
hint: (optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process. hint: (optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process.
order: 9 order: 9
scope:
type: String
title: Scope
hint: (optional) Application Client permission scopes.
order: 10
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment