commit aa6d490040b9b51fe4c076dc556753c61d991fd6
parent fc1aa373c9368a604665ef70a47eed6b24b75d60
Author: Jan Dankert <devnull@localhost>
Date: Tue, 6 Nov 2012 00:12:55 +0100
Anpassung OpenId an das Interface Auth.
Diffstat:
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/auth/OpenIdAuth.class.php b/auth/OpenIdAuth.class.php
@@ -5,8 +5,32 @@
* Open-Id Authentisierung gem�� OpenId-Spezifikation 1.0.
*
*/
-class OpenId
+class OpenIdAuth implements Auth
{
+ function username()
+ {
+ return null;
+ }
+
+
+ function login( $username, $password )
+ {
+ return false;
+ }
+
+
+ function redirect()
+ {
+ $this->login2();
+ return $this->getRedirectUrl();
+ }
+
+
+ function checkToken()
+ {
+ $this->checkAuthentication();
+ }
+
/**
* Open-Id Server, an den die Authentisierungsanfrage gestellt wird.
*
@@ -108,7 +132,7 @@ class OpenId
*
* @return boolean TRUE, wenn Identity ermittelt wurde.
*/
- function login()
+ function login2()
{
if ( $this->provider != 'identity' )
{