Skip to content

Commit

Permalink
feat: expose skipUserProfile option in passport-oidc (#6190)
Browse files Browse the repository at this point in the history
Co-authored-by: Robin Chalmers <robin.chalmers@kairostech.no>
  • Loading branch information
robinho81 and robinho8 authored Mar 17, 2023
1 parent 5acc7e7 commit 8db4be6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion server/modules/authentication/oidc/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
18 changes: 12 additions & 6 deletions server/modules/authentication/oidc/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 10
order: 11
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: 11
order: 12

0 comments on commit 8db4be6

Please sign in to comment.