PHP Classes

File: web/SSO/modules/core/www/idp/resumeauth.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/core/www/idp/resumeauth.php   Download  
File: web/SSO/modules/core/www/idp/resumeauth.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 711 bytes
 

Contents

Class file image Download
<?php

/* TODO: Delete this file in version 1.8. */

if (!isset($_REQUEST['RequestID'])) {
    throw new
SimpleSAML_Error_BadRequest('Missing required URL parameter.');
}

/* Backwards-compatibility with old authentication pages. */
$session = SimpleSAML_Session::getSessionFromRequest();
$requestcache = $session->getAuthnRequest('saml2', (string)$_REQUEST['RequestID']);
if (!
$requestcache) {
    throw new
Exception('Could not retrieve cached RequestID = ' . $authId);
}

if (
$requestcache['ForceAuthn'] && $requestcache['core:prevSession'] === $session->getAuthnInstant()) {
    throw new
Exception('ForceAuthn set, but timestamp not updated.');
}

$state = $requestcache['State'];
SimpleSAML_IdP::postAuth($state);