PHP code example of su-sws / stanford_samlauth
1. Go to this page and download the library: Download su-sws/stanford_samlauth library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
su-sws / stanford_samlauth example snippets
$config['samlauth.authentication']['sp_x509_certificate'] = 'file:/path/to/cert.crt';
$config['samlauth.authentication']['sp_private_key'] = 'file:/path/to/cert.key';
// If using signing to authenticate the service.
$config['samlauth.authentication']['idp_certs'][0] = 'file:/path/to/signing/cert.crt';
// Optional Workgroup API cert and key.
$config['stanford_samlauth.settings']['role_mapping']['workgroup_api']['cert'] = '/path/to/workgroup/cert.crt';
$config['stanford_samlauth.settings']['role_mapping']['workgroup_api']['key'] = '/path/to/workgroup/cert.key';