Skip to content

Commit

Permalink
Add support for organization selection during autoprovisioning (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Bredzinski <[email protected]>
Co-authored-by: odain-cbd <[email protected]>
  • Loading branch information
3 people authored Jan 21, 2025
1 parent dc9f272 commit 641d587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HybridAuthLoginExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ private function DoUserProvisioning(string $sLoginMode)
// Create the person
$sFirstName = $oUserProfile->firstName ?? $sEmail;
$sLastName = $oUserProfile->lastName ?? $sEmail;
$sOrganization = Config::GetDefaultOrg($sLoginMode);
$sOrganization = $oUserProfile->data["organization"] ?? Config::GetDefaultOrg($sLoginMode);

$aAdditionalParams = array('phone' => $oUserProfile->phone);
IssueLog::Info("OpenID Person provisioning", HybridAuthLoginExtension::LOG_CHANNEL,
[
Expand Down

0 comments on commit 641d587

Please sign in to comment.