forked from Seneca-CDOT/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Seneca-CDOT#709: add backend support for Admin users
- Loading branch information
Showing
9 changed files
with
171 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/* | ||
Specify that we want the user's nameID to be persistent, and use the email: | ||
https://stackoverflow.com/questions/50260272/how-to-replace-a-value-of-nameid-with-attribute-in-simplesamlphp-based-idp | ||
*/ | ||
|
||
$metadata['__DYNAMIC:1__'] = array( | ||
/* | ||
* The hostname of the server (VHOST) that will use this SAML entity. | ||
* | ||
* Can be '__DEFAULT__', to use this entry by default. | ||
*/ | ||
'host' => '__DEFAULT__', | ||
// X.509 key and certificate. Relative to the cert directory. | ||
'privatekey' => 'server.pem', | ||
'certificate' => 'server.crt', | ||
/* | ||
* Authentication source to use. Must be one that is configured in | ||
* 'config/authsources.php'. | ||
*/ | ||
'auth' => 'example-userpass', | ||
|
||
'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent', | ||
|
||
// refer to https://simplesamlphp.org/docs/stable/saml:nameid | ||
'authproc' => array( | ||
3 => array( | ||
'class' => 'saml:AttributeNameID', | ||
'attribute' => 'email', | ||
'Format' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent' | ||
) | ||
) | ||
|
||
); |
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