mirror of https://github.com/MISP/MISP
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
parent
4defa600a7
commit
b1fcdd783b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue