Name

OmniTI_OpenID — This module provides the guts of an OpenID 1.1 Consumer.

Synopsis

include "OmniTI/Auth/OpenID.php";

Description

This module provides the guts of an OpenID 1.1 Consumer.

Usage is along the lines of:

 $oid = new OmniTI_OpenID;
 $url = $oid->determineAuthURL($id, $server, $delegate, $endpoint, $root);
 header("Location: $url");

Then at $endpoint:

 $oid = new OmniTI_OpenID;
 $authd = $oid->processAuthenticationResults($server);

Note that you either need to encode $server/$id/$delegate into your $endpoint URL, or store them in the session.

Member Variables

protected $base_dir = "/tmp"

override this to set the base dir for your openid association cache

public static $P = '1551728981814736974712322577637155 ...

the OpenID P value

public static $PBTWOC = 'ANz5OguIOXLsDhmYmsWizjEOHTdxfo2Vcb ...

the OpenID P value as base64 encoded binary twos complement notation

public static $GBTWOC = 'Ag=='

2 as base64 encoded binary twos complement notation

Methods