]> BookStack Code Mirror - bookstack/blobdiff - app/Config/openid.php
Default OpenID display name set to standard value
[bookstack] / app / Config / openid.php
index 2232ba7b2729f3df21bc6a9c381fa0012aa5b86c..90eb6d5dbcfda8cfcb1831798951e2d640bae51d 100644 (file)
@@ -11,13 +11,16 @@ return [
     // Attribute, within a OpenId token, to find the user's email address
     'email_attribute' => env('OPENID_EMAIL_ATTRIBUTE', 'email'),
     // Attribute, within a OpenId token, to find the user's display name
-    'display_name_attributes' => explode('|', env('OPENID_DISPLAY_NAME_ATTRIBUTES', 'username')),
+    'display_name_attributes' => explode('|', env('OPENID_DISPLAY_NAME_ATTRIBUTES', 'name')),
     // Attribute, within a OpenId token, to use to connect a BookStack user to the OpenId user.
     'external_id_attribute' => env('OPENID_EXTERNAL_ID_ATTRIBUTE', null),
 
     // Overrides, in JSON format, to the configuration passed to underlying OpenIDConnectProvider library.
     'openid_overrides' => env('OPENID_OVERRIDES', null),
 
+    // Custom service instances, used by the underlying OpenIDConnectProvider library
+    'openid_services' => [],
+
     'openid' => [
         // OAuth2/OpenId client id, as configured in your Authorization server.
         'clientId'                => env('OPENID_CLIENT_ID', ''),