PHP code example of temp / saml2
1. Go to this page and download the library: Download temp/saml2 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/ */
temp / saml2 example snippets
// Use Composers autoloading
rface (out of scope for example)
t up an AuthnRequest
$request = new SAML2_AuthnRequest();
$request->setId(SAML2_Utils::generateId());
$request->setIssuer('https://sp.example.edu');
$request->setDestination('https://idp.example.edu');
// Send it off using the HTTP-Redirect binding
$binding = new SAML2_HTTPRedirect();
$binding->send($request);