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

Auth_Simple: Add getAuthSource()-function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2846 44740490-163a-0410-bde0-09ae8108e29a
parent 417a644c
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,16 @@ class SimpleSAML_Auth_BWC extends SimpleSAML_Auth_Simple { ...@@ -59,6 +59,16 @@ class SimpleSAML_Auth_BWC extends SimpleSAML_Auth_Simple {
} }
/**
* Retrieve the implementing authentication source.
*
* @return NULL There is never an authentication source behind this class.
*/
public function getAuthSource() {
return NULL;
}
/** /**
* Start a login operation. * Start a login operation.
* *
......
...@@ -28,6 +28,16 @@ class SimpleSAML_Auth_Simple { ...@@ -28,6 +28,16 @@ class SimpleSAML_Auth_Simple {
} }
/**
* Retrieve the implementing authentication source.
*
* @return SimpleSAML_Auth_Source The authentication source.
*/
public function getAuthSource() {
return SimpleSAML_Auth_Source::getById($this->authSource);
}
/** /**
* Check if the user is authenticated. * Check if the user is authenticated.
* *
......
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