-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from silinternational/feature/ssp2-sp-patch
Customized multi-IdP behavior
- Loading branch information
Showing
6 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
*** ../../vendor/simplesamlphp/simplesamlphp/modules/saml/src/Auth/Source/SP.php 2024-04-30 10:38:57.000000000 -0600 | ||
--- SP.php 2024-07-11 17:07:40.000000000 -0600 | ||
*************** | ||
*** 809,814 **** | ||
--- 809,822 ---- | ||
$state[$k] = $v; | ||
} | ||
|
||
+ /* | ||
+ * If this SP is allowed to use more than one IdP, then send to discovery page | ||
+ */ | ||
+ if (sizeof($state['saml:IDPList']) > 1) { | ||
+ $state['LoginCompletedHandler'] = [SP::class, 'reauthPostLogin']; | ||
+ $this->authenticate($state); | ||
+ } | ||
+ | ||
// check if we have an IDPList specified in the request | ||
if ( | ||
isset($state['saml:IDPList']) | ||
*************** | ||
*** 858,866 **** | ||
$state['core:SP'] | ||
)); | ||
|
||
! $state['saml:sp:IdPMetadata'] = $this->getIdPMetadata($state['saml:sp:IdP']); | ||
! $state['saml:sp:AuthId'] = $this->authId; | ||
! self::askForIdPChange($state); | ||
} | ||
|
||
/* | ||
--- 866,873 ---- | ||
$state['core:SP'] | ||
)); | ||
|
||
! $state['LoginCompletedHandler'] = [SP::class, 'reauthPostLogin']; | ||
! $this->authenticate($state); | ||
} | ||
|
||
/* |