Beispiel #1
0
/**
 * Instantiate a new OpenID server object
 */
function getServer()
{
    static $server = null;
    if (!isset($server)) {
        $server = new Auth_OpenID_Server(getOpenIDStore(), buildURL());
    }
    return $server;
}
Beispiel #2
0
/**
 * Instantiate a new OpenID server object
 */
function getServer()
{
    static $server = null;
    if (!isset($server)) {
        //$server =& new Auth_OpenID_Server(getOpenIDStore(),
        //                                  buildURL());
        global $server_url;
        $server =& new Auth_OpenID_Server(getOpenIDStore(), $server_url);
    }
    return $server;
}
Beispiel #3
0
 function OpenIDServer()
 {
     global $wgOpenIDServerStorePath, $wgOpenIDServerStoreType;
     $store = getOpenIDStore($wgOpenIDServerStoreType, 'server', array('path' => $wgOpenIDServerStorePath));
     return new Auth_OpenID_Server($store);
 }
Beispiel #4
0
 function OpenIDConsumer()
 {
     global $wgOpenIDConsumerStoreType, $wgOpenIDConsumerStorePath;
     $store = getOpenIDStore($wgOpenIDConsumerStoreType, 'consumer', array('path' => $wgOpenIDConsumerStorePath));
     return new Auth_OpenID_Consumer($store);
 }
Beispiel #5
0
function &getOpenIDConsumer()
{
    $store = getOpenIDStore();
    $consumer =& new Auth_OpenID_Consumer($store);
    return $consumer;
}