Browse Source

feat: add ACR Value option to OIDC Module (#6553)

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Andrew McFadden 1 year ago
parent
commit
db8a09fe8c

+ 2 - 1
server/modules/authentication/oidc/authentication.js

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

+ 5 - 0
server/modules/authentication/oidc/definition.yml

@@ -80,3 +80,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: 12
+  acrValues:
+    type: String
+    title: ACR Values
+    hint: (optional) Authentication Context Class Reference
+    order: 13