123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
- require_once 'Auth/OpenID/Interface.php';
- require_once 'Auth/OpenID/HMAC.php';
- class Auth_OpenID_DumbStore extends Auth_OpenID_OpenIDStore {
-
- function Auth_OpenID_DumbStore($secret_phrase)
- {
- $this->auth_key = Auth_OpenID_SHA1($secret_phrase);
- }
-
- function storeAssociation($server_url, $association)
- {
- }
-
- function getAssociation($server_url, $handle = null)
- {
- return null;
- }
-
- function removeAssociation($server_url, $handle)
- {
- return false;
- }
-
- function useNonce($server_url, $timestamp, $salt)
- {
- return true;
- }
-
- function getAuthKey()
- {
- return $this->auth_key;
- }
- }
|