]> BookStack Code Mirror - bookstack/blobdiff - app/Config/oidc.php
Added option to change the OIDC claim regarded as the ID
[bookstack] / app / Config / oidc.php
index d223a63eff6d4816dd202635ab4891c865a01d21..1f73fb688662e8b72ea69700af2f1d4fa7138e31 100644 (file)
@@ -8,9 +8,12 @@ return [
     // Dump user details after a login request for debugging purposes
     'dump_user_details' => env('OIDC_DUMP_USER_DETAILS', false),
 
-    // Attribute, within a OpenId token, to find the user's display name
+    // Claim, within an OpenId token, to find the user's display name
     'display_name_claims' => explode('|', env('OIDC_DISPLAY_NAME_CLAIMS', 'name')),
 
+    // Claim, within an OpenID token, to use to connect a BookStack user to the OIDC user.
+    'external_id_claim' => env('OIDC_EXTERNAL_ID_CLAIM', 'sub'),
+
     // OAuth2/OpenId client id, as configured in your Authorization server.
     'client_id' => env('OIDC_CLIENT_ID', null),