diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-10-29 16:01:25 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-10-29 16:27:22 -0400 |
commit | 54696f7c46684234bbeb48747b37f934ffd0d393 (patch) | |
tree | d80c6e55b3f1ea606b3b080ebbb9ad31bfe4bbed /plugins/OpenID/openid.php | |
parent | 24c3a15124ab866bf7e9401f638156e102074608 (diff) |
Moved the public XRDS from the OpenID plugin to core
Added 4 new events involved in XRDS: StartUserXRDS, EndUserXRDS, StartPublicXRDS, EndPublicXRDS
Added OpenID provider functionality (no delegation support [yet])
Diffstat (limited to 'plugins/OpenID/openid.php')
-rw-r--r-- | plugins/OpenID/openid.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/OpenID/openid.php b/plugins/OpenID/openid.php index b76497c28..ff7a93899 100644 --- a/plugins/OpenID/openid.php +++ b/plugins/OpenID/openid.php @@ -23,6 +23,7 @@ require_once(INSTALLDIR.'/plugins/OpenID/User_openid.php'); require_once('Auth/OpenID.php'); require_once('Auth/OpenID/Consumer.php'); +require_once('Auth/OpenID/Server.php'); require_once('Auth/OpenID/SReg.php'); require_once('Auth/OpenID/MySQLStore.php'); @@ -50,6 +51,13 @@ function oid_consumer() return $consumer; } +function oid_server() +{ + $store = oid_store(); + $server = new Auth_OpenID_Server($store, common_local_url('openidserver')); + return $server; +} + function oid_clear_last() { oid_set_last(''); |