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

SimpleSAML_IdP: Use SimpleSAML_Auth_Simple.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2608 44740490-163a-0410-bde0-09ae8108e29a
parent 2d89b7c3
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,9 @@ class SimpleSAML_IdP {
}
$state['IdPMetadata'] = $this->getConfig()->toArray();
SimpleSAML_Auth_Default::initLogin($auth, array('SimpleSAML_IdP', 'postAuth'), NULL, $state);
$state['ReturnCallback'] = array('SimpleSAML_IdP', 'postAuth');
$as = new SimpleSAML_Auth_Simple($auth);
$as->login($state);
}
......@@ -534,7 +536,8 @@ class SimpleSAML_IdP {
if ($authority === $this->config->getString('auth')) {
/* This is probably an authentication source. */
SimpleSAML_Auth_Default::initLogoutReturn($returnTo);
$as = new SimpleSAML_Auth_Simple($authority);
$as->logout($returnTo);
} elseif ($authority === 'saml2') {
/* SAML 2 SP which isn't an authentication source. */
$config = SimpleSAML_Configuration::getInstance();
......
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