Updated OIDC group attr option name

To match the existing option name for display names.
Closes #3704
This commit is contained in:
Dan Brown
2022-09-06 16:32:42 +01:00
parent b9941e8e61
commit 24f82749ff
4 changed files with 6 additions and 6 deletions

View File

@ -181,7 +181,7 @@ class OidcService
*/
protected function getUserGroups(OidcIdToken $token): array
{
$groupsAttr = $this->config()['group_attribute'];
$groupsAttr = $this->config()['groups_claim'];
if (empty($groupsAttr)) {
return [];
}

View File

@ -41,7 +41,7 @@ return [
// Enable syncing, upon login, of OIDC groups to BookStack roles
'user_to_groups' => env('OIDC_USER_TO_GROUPS', false),
// Attribute, within a OIDC ID token, to find group names within
'group_attribute' => env('OIDC_GROUP_ATTRIBUTE', 'groups'),
'groups_claim' => env('OIDC_GROUPS_CLAIM', 'groups'),
// When syncing groups, remove any groups that no longer match. Otherwise sync only adds new groups.
'remove_from_groups' => env('OIDC_REMOVE_FROM_GROUPS', false),
];