Deprecated: Assigning the return value of new by reference is deprecated in /home/cosmosa/www/blog/openid/common.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in /home/cosmosa/www/blog/openid/Auth/OpenID/Consumer.php on line 271

Deprecated: Assigning the return value of new by reference is deprecated in /home/cosmosa/www/blog/openid/Auth/OpenID/Consumer.php on line 273

Deprecated: Assigning the return value of new by reference is deprecated in /home/cosmosa/www/blog/openid/Auth/Yadis/XRDS.php on line 355

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Message.php on line 83

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cosmosa/www/blog/openid/common.php:71) in /home/cosmosa/www/blog/openid/try_auth.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cosmosa/www/blog/openid/common.php:71) in /home/cosmosa/www/blog/openid/try_auth.php on line 4

Strict Standards: Non-static method Auth_OpenID::ensureDir() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/FileStore.php on line 51

Strict Standards: Non-static method Auth_OpenID::ensureDir() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/FileStore.php on line 91

Strict Standards: Non-static method Auth_OpenID::ensureDir() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/FileStore.php on line 92

Strict Standards: Non-static method Auth_OpenID::ensureDir() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/FileStore.php on line 93

Notice: Only variable references should be returned by reference in /home/cosmosa/www/blog/openid/common.php on line 62

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Association.php on line 418

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Association.php on line 418

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Association.php on line 418

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Association.php on line 418

Strict Standards: Non-static method Auth_Yadis_Yadis::getHTTPFetcher() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Consumer.php on line 620

Strict Standards: Non-static method Auth_Yadis_Yadis::curlPresent() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/Yadis/Yadis.php on line 255

Strict Standards: Non-static method Auth_OpenID::normalizeUrl() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Discover.php on line 470

Strict Standards: Non-static method Auth_OpenID::urldefrag() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID.php on line 437

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Auth_Yadis_Yadis::discover() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Discover.php on line 436

Strict Standards: Non-static method Auth_Yadis_Yadis::_getHeader() should not be called statically in /home/cosmosa/www/blog/openid/Auth/Yadis/Yadis.php on line 344

Strict Standards: Non-static method Auth_Yadis_Yadis::_getContentType() should not be called statically in /home/cosmosa/www/blog/openid/Auth/Yadis/Yadis.php on line 347

Strict Standards: Non-static method Auth_Yadis_Yadis::_getHeader() should not be called statically in /home/cosmosa/www/blog/openid/Auth/Yadis/Yadis.php on line 353

Strict Standards: Non-static method Auth_Yadis_Yadis::_getHeader() should not be called statically in /home/cosmosa/www/blog/openid/Auth/Yadis/Yadis.php on line 373

Strict Standards: Non-static method Auth_OpenID_ServiceEndpoint::fromXRDS() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Discover.php on line 447

Strict Standards: Non-static method Auth_Yadis_XRDS::parseXRDS() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Discover.php on line 182

Warning: Parameter 1 to filter_MatchesAnyOpenIDType() expected to be a reference, value given in /home/cosmosa/www/blog/openid/Auth/Yadis/XRDS.php on line 431

Strict Standards: Non-static method Auth_OpenID_ServiceEndpoint::fromHTML() should not be called statically in /home/cosmosa/www/blog/openid/Auth/OpenID/Discover.php on line 488

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298

Strict Standards: Non-static method Auth_OpenID::arrayGet() should not be called statically, assuming $this from incompatible context in /home/cosmosa/www/blog/openid/Auth/OpenID/Parse.php on line 298
PHP OpenID Authentication Example

PHP OpenID Authentication Example

This example consumer uses the PHP OpenID library. It just verifies that the URL that you enter is your identity URL.

Authentication error; not a valid OpenID.
Identity URL:

Optionally, request these PAPE policies:

http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical
http://schemas.openid.net/pape/policies/2007/06/multi-factor
http://schemas.openid.net/pape/policies/2007/06/phishing-resistant