Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
f7546191
Unverified
Commit
f7546191
authored
Apr 12, 2022
by
myml
Committed by
NGPixel
Apr 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(auth): OAuth2 scope support (#5181)
parent
38aab6f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
authentication.js
server/modules/authentication/oauth2/authentication.js
+2
-1
definition.yml
server/modules/authentication/oauth2/definition.yml
+5
-0
No files found.
server/modules/authentication/oauth2/authentication.js
View file @
f7546191
...
...
@@ -17,7 +17,8 @@ module.exports = {
clientSecret
:
conf
.
clientSecret
,
userInfoURL
:
conf
.
userInfoURL
,
callbackURL
:
conf
.
callbackURL
,
passReqToCallback
:
true
passReqToCallback
:
true
,
scope
:
conf
.
scope
},
async
(
req
,
accessToken
,
refreshToken
,
profile
,
cb
)
=>
{
try
{
const
user
=
await
WIKI
.
models
.
users
.
processProfile
({
...
...
server/modules/authentication/oauth2/definition.yml
View file @
f7546191
...
...
@@ -59,3 +59,8 @@ props:
title
:
Logout URL
hint
:
(optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process.
order
:
9
scope
:
type
:
String
title
:
Scope
hint
:
(optional) Application Client permission scopes.
order
:
10
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment