Skip to content
Snippets Groups Projects
Commit 8f85ef31 authored by Olav Morken's avatar Olav Morken
Browse files

openid: Remove unused page: initopenid.php

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2561 44740490-163a-0410-bde0-09ae8108e29a
parent 5fd4c866
No related branches found
No related tags found
No related merge requests found
<?php
/**
* The _include script registers a autoloader for the simpleSAMLphp libraries. It also
* initializes the simpleSAMLphp config class with the correct path.
*/
require_once('_include.php');
/* Load simpleSAMLphp, configuration and metadata */
$config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
if (empty($_REQUEST['RelayState'])) {
throw new SimpleSAML_Error_Error('NORELAYSTATE');
}
if (! $session->isValid('openid') ) {
/* Authenticate with an AuthSource. */
$hints = array();
if (array_key_exists('openid', $_REQUEST)) $hints['openid'] = $_REQUEST['openid'];
SimpleSAML_Auth_Default::initLogin('openid', $_REQUEST['RelayState'], NULL, $hints);
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment