-
-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sources/saml: fix pickle error, add saml auth tests (cherry-pick #10348…
…) (#10352) sources/saml: fix pickle error, add saml auth tests (#10348) * test with persistent nameid * fix pickle * user_write: dont attempt to write to read only property * add test for enroll + auth * unwrap lazy user --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L <jens@goauthentik.io>
- Loading branch information
1 parent
6cdae09
commit 5997b93
Showing
4 changed files
with
153 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* SAML 2.0 remote SP metadata for SimpleSAMLphp. | ||
* | ||
* See: https://simplesamlphp.org/docs/stable/simplesamlphp-reference-sp-remote | ||
*/ | ||
|
||
$metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')] = array( | ||
'AssertionConsumerService' => getenv('SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE'), | ||
'SingleLogoutService' => getenv('SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE'), | ||
); | ||
|
||
if (null != getenv('SIMPLESAMLPHP_SP_NAME_ID_FORMAT')) { | ||
$metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')] = array_merge($metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')], array('NameIDFormat' => getenv('SIMPLESAMLPHP_SP_NAME_ID_FORMAT'))); | ||
} | ||
|
||
if (null != getenv('SIMPLESAMLPHP_SP_NAME_ID_ATTRIBUTE')) { | ||
$metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')] = array_merge($metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')], array('simplesaml.nameidattribute' => getenv('SIMPLESAMLPHP_SP_NAME_ID_ATTRIBUTE'))); | ||
} | ||
|
||
if (null != getenv('SIMPLESAMLPHP_SP_SIGN_ASSERTION')) { | ||
$metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')] = array_merge($metadata[getenv('SIMPLESAMLPHP_SP_ENTITY_ID')], array('saml20.sign.assertion' => ('true' == getenv('SIMPLESAMLPHP_SP_SIGN_ASSERTION')))); | ||
} |
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