Oidc.php: use default_org if IdP does not send it

If `organisation_property` is not sent by the IdP, authentication fails even if `default_org` is set in Config.
pull/9664/head
ftoppi 2024-04-05 13:39:51 +02:00 committed by GitHub
parent 4defa600a7
commit b1fcdd783b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Oidc
}
$organisationProperty = $this->getConfig('organisation_property', 'organization');
$organisationName = $claims->{$organisationProperty} ?? null;
$organisationName = $claims->{$organisationProperty} ?? $this->getConfig('default_org');
$organisationUuidProperty = $this->getConfig('organisation_uuid_property', 'organization_uuid');
$organisationUuid = $claims->{$organisationUuidProperty} ?? null;