00001 <?php 00002 00020 require_once 'Auth/OpenID/Interface.php'; 00021 require_once 'Auth/OpenID/HMAC.php'; 00022 00034 class Auth_OpenID_DumbStore extends Auth_OpenID_OpenIDStore { 00035 00053 function Auth_OpenID_DumbStore($secret_phrase) 00054 { 00055 $this->auth_key = Auth_OpenID_SHA1($secret_phrase); 00056 } 00057 00061 function storeAssociation($server_url, $association) 00062 { 00063 } 00064 00068 function getAssociation($server_url, $handle = null) 00069 { 00070 return null; 00071 } 00072 00076 function removeAssociation($server_url, $handle) 00077 { 00078 return false; 00079 } 00080 00086 function useNonce($server_url, $timestamp, $salt) 00087 { 00088 return true; 00089 } 00090 00094 function getAuthKey() 00095 { 00096 return $this->auth_key; 00097 } 00098 } 00099 00100 ?>