feat: expose skipUserProfile option in passport-oidc (#6190)

Co-authored-by: Robin Chalmers <robin.chalmers@kairostech.no>
pull/6305/head
robinho81 2 years ago committed by GitHub
parent 5acc7e752e
commit 8db4be668b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,8 @@ module.exports = {
issuer: conf.issuer, issuer: conf.issuer,
userInfoURL: conf.userInfoURL, userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL, callbackURL: conf.callbackURL,
passReqToCallback: true passReqToCallback: true,
skipUserProfile: conf.skipUserProfile
}, async (req, iss, uiProfile, idProfile, context, idToken, accessToken, refreshToken, params, cb) => { }, async (req, iss, uiProfile, idProfile, context, idToken, accessToken, refreshToken, params, cb) => {
const profile = Object.assign({}, idProfile, uiProfile) const profile = Object.assign({}, idProfile, uiProfile)

@ -37,40 +37,46 @@ props:
title: User Info Endpoint URL title: User Info Endpoint URL
hint: User Info Endpoint URL hint: User Info Endpoint URL
order: 5 order: 5
skipUserProfile:
type: Boolean
default: false
title: Skip User Profile
hint: Skips call to the OIDC UserInfo endpoint
order: 6
issuer: issuer:
type: String type: String
title: Issuer title: Issuer
hint: Issuer URL hint: Issuer URL
order: 6 order: 7
emailClaim: emailClaim:
type: String type: String
title: Email Claim title: Email Claim
hint: Field containing the email address hint: Field containing the email address
default: email default: email
maxWidth: 500 maxWidth: 500
order: 7 order: 8
displayNameClaim: displayNameClaim:
type: String type: String
title: Display Name Claim title: Display Name Claim
hint: Field containing the user display name hint: Field containing the user display name
default: displayName default: displayName
maxWidth: 500 maxWidth: 500
order: 8 order: 9
mapGroups: mapGroups:
type: Boolean type: Boolean
title: Map Groups title: Map Groups
hint: Map groups matching names from the groups claim value hint: Map groups matching names from the groups claim value
default: false default: false
order: 9 order: 10
groupsClaim: groupsClaim:
type: String type: String
title: Groups Claim title: Groups Claim
hint: Field containing the group names hint: Field containing the group names
default: groups default: groups
maxWidth: 500 maxWidth: 500
order: 10 order: 11
logoutURL: logoutURL:
type: String type: String
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: 11 order: 12

Loading…
Cancel
Save