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
8db4be66
Unverified
Commit
8db4be66
authored
Mar 17, 2023
by
robinho81
Committed by
GitHub
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: expose skipUserProfile option in passport-oidc (#6190)
Co-authored-by:
Robin Chalmers
<
robin.chalmers@kairostech.no
>
parent
5acc7e75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
authentication.js
server/modules/authentication/oidc/authentication.js
+2
-1
definition.yml
server/modules/authentication/oidc/definition.yml
+12
-6
No files found.
server/modules/authentication/oidc/authentication.js
View file @
8db4be66
...
...
@@ -19,7 +19,8 @@ module.exports = {
issuer
:
conf
.
issuer
,
userInfoURL
:
conf
.
userInfoURL
,
callbackURL
:
conf
.
callbackURL
,
passReqToCallback
:
true
passReqToCallback
:
true
,
skipUserProfile
:
conf
.
skipUserProfile
},
async
(
req
,
iss
,
uiProfile
,
idProfile
,
context
,
idToken
,
accessToken
,
refreshToken
,
params
,
cb
)
=>
{
const
profile
=
Object
.
assign
({},
idProfile
,
uiProfile
)
...
...
server/modules/authentication/oidc/definition.yml
View file @
8db4be66
...
...
@@ -37,40 +37,46 @@ props:
title
:
User Info Endpoint URL
hint
:
User Info Endpoint URL
order
:
5
skipUserProfile
:
type
:
Boolean
default
:
false
title
:
Skip User Profile
hint
:
Skips call to the OIDC UserInfo endpoint
order
:
6
issuer
:
type
:
String
title
:
Issuer
hint
:
Issuer URL
order
:
6
order
:
7
emailClaim
:
type
:
String
title
:
Email Claim
hint
:
Field containing the email address
default
:
email
maxWidth
:
500
order
:
7
order
:
8
displayNameClaim
:
type
:
String
title
:
Display Name Claim
hint
:
Field containing the user display name
default
:
displayName
maxWidth
:
500
order
:
8
order
:
9
mapGroups
:
type
:
Boolean
title
:
Map Groups
hint
:
Map groups matching names from the groups claim value
default
:
false
order
:
9
order
:
10
groupsClaim
:
type
:
String
title
:
Groups Claim
hint
:
Field containing the group names
default
:
groups
maxWidth
:
500
order
:
1
0
order
:
1
1
logoutURL
:
type
:
String
title
:
Logout URL
hint
:
(optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process.
order
:
1
1
order
:
1
2
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