ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Message.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_OpenID_Mapping
class  Auth_OpenID_NamespaceMap
class  Auth_OpenID_Message

Namespaces

namespace  OpenID
 This module contains code for dealing with associations between consumers and servers.

Functions

 Auth_OpenID_isOpenID1 ($ns)
 Auth_OpenID_registerNamespaceAlias ($namespace_uri, $alias)
 Registers a (namespace URI, alias) mapping in a global namespace alias map.
 Auth_OpenID_removeNamespaceAlias ($namespace_uri, $alias)
 Removes a (namespace_uri, alias) registration from the global namespace alias map.

Variables

const Auth_OpenID_IDENTIFIER_SELECT = "http://specs.openid.net/auth/2.0/identifier_select"
 Import tools needed to deal with messages.
const Auth_OpenID_SREG_URI = 'http://openid.net/sreg/1.0'
const Auth_OpenID_OPENID1_NS = 'http://openid.net/signon/1.0'
const Auth_OpenID_THE_OTHER_OPENID1_NS = 'http://openid.net/signon/1.1'
const Auth_OpenID_OPENID2_NS = 'http://specs.openid.net/auth/2.0'
const Auth_OpenID_NULL_NAMESPACE = 'Null namespace'
const Auth_OpenID_OPENID_NS = 'OpenID namespace'
const Auth_OpenID_BARE_NS = 'Bare namespace'
const Auth_OpenID_NO_DEFAULT = 'NO DEFAULT ALLOWED'
const Auth_OpenID_OPENID1_URL_LIMIT = 2047
global $Auth_OpenID_OPENID_PROTOCOL_FIELDS
global $Auth_OpenID_registered_aliases = array()

Function Documentation

Auth_OpenID_isOpenID1 (   $ns)

Definition at line 28 of file Message.php.

References Auth_OpenID_OPENID1_NS, and Auth_OpenID_THE_OTHER_OPENID1_NS.

Referenced by Auth_OpenID_Message\Auth_OpenID_Message(), and Auth_OpenID_Message\isOpenID1().

+ Here is the caller graph for this function:

Auth_OpenID_registerNamespaceAlias (   $namespace_uri,
  $alias 
)

Registers a (namespace URI, alias) mapping in a global namespace alias map.

Raises NamespaceAliasRegistrationError if either the namespace URI or alias has already been registered with a different value. This function is required if you want to use a namespace with an OpenID 1 message.

Definition at line 77 of file Message.php.

{
if (Auth_OpenID::arrayGet($Auth_OpenID_registered_aliases,
$alias) == $namespace_uri) {
return true;
}
if (in_array($namespace_uri,
array_values($Auth_OpenID_registered_aliases))) {
return false;
}
if (in_array($alias, array_keys($Auth_OpenID_registered_aliases))) {
return false;
}
$Auth_OpenID_registered_aliases[$alias] = $namespace_uri;
return true;
Auth_OpenID_removeNamespaceAlias (   $namespace_uri,
  $alias 
)

Removes a (namespace_uri, alias) registration from the global namespace alias map.

Returns true if the removal succeeded; false if not (if the mapping did not exist).

Definition at line 104 of file Message.php.

{
if (Auth_OpenID::arrayGet($Auth_OpenID_registered_aliases,
$alias) === $namespace_uri) {
unset($Auth_OpenID_registered_aliases[$alias]);
return true;
}
return false;

Variable Documentation

$Auth_OpenID_OPENID_PROTOCOL_FIELDS
Initial value:
array(
'ns', 'mode', 'error', 'return_to', 'contact', 'reference',
'signed', 'assoc_type', 'session_type', 'dh_modulus', 'dh_gen',
'dh_consumer_public', 'claimed_id', 'identity', 'realm',
'invalidate_handle', 'op_endpoint', 'response_nonce', 'sig',
'assoc_handle', 'trust_root', 'openid')

Definition at line 57 of file Message.php.

Referenced by Auth_OpenID_NamespaceMap\addAlias().

$Auth_OpenID_registered_aliases = array()

Definition at line 67 of file Message.php.

Referenced by Auth_OpenID_Message\_getDefaultNamespace().

const Auth_OpenID_IDENTIFIER_SELECT = "http://specs.openid.net/auth/2.0/identifier_select"

Import tools needed to deal with messages.

Definition at line 18 of file Message.php.

Referenced by Auth_OpenID_CheckIDRequest\answer(), Auth_OpenID_AuthRequest\getMessage(), and Auth_OpenID_CheckIDRequest\idSelect().

const Auth_OpenID_NULL_NAMESPACE = 'Null namespace'
const Auth_OpenID_OPENID1_URL_LIMIT = 2047
const Auth_OpenID_OPENID_NS = 'OpenID namespace'

Definition at line 42 of file Message.php.

Referenced by Auth_OpenID_GenericConsumer\_checkReturnTo(), Auth_OpenID_GenericConsumer\_complete_error(), Auth_OpenID_GenericConsumer\_completeInvalid(), Auth_OpenID_GenericConsumer\_createCheckAuthRequest(), Auth_OpenID_GenericConsumer\_doIdRes(), Auth_OpenID_GenericConsumer\_extractAssociation(), Auth_OpenID_GenericConsumer\_extractSupportedAssociationType(), Auth_OpenID_GenericConsumer\_idResCheckForFields(), Auth_OpenID_GenericConsumer\_idResCheckSignature(), Auth_OpenID_Association\_makePairs(), Auth_OpenID_GenericConsumer\_processCheckAuthResponse(), Auth_OpenID_GenericConsumer\_verifyReturnToArgs(), Auth_OpenID_CheckAuthRequest\answer(), Auth_OpenID_AssociateRequest\answer(), Auth_OpenID_CheckIDRequest\answer(), Auth_OpenID_AssociateRequest\answerUnsupported(), Auth_OpenID_Association\checkMessageSignature(), Auth_OpenID_GenericConsumer\complete(), Auth_OpenID_Decoder\decode(), Auth_OpenID_Decoder\defaultDecoder(), Auth_OpenID_SigningEncoder\encode(), Auth_OpenID_CheckIDRequest\encodeToURL(), Auth_OpenID_DiffieHellmanSHA1ConsumerSession\extractSecret(), Auth_OpenID_PlainTextConsumerSession\extractSecret(), Auth_OpenID_CheckAuthRequest\fromMessage(), Auth_OpenID_AssociateRequest\fromMessage(), Auth_OpenID_CheckIDRequest\fromMessage(), Auth_OpenID_ServerErrorContainer\fromMessage(), Auth_OpenID_CheckIDRequest\getCancelURL(), Auth_OpenID_DiffieHellmanSHA1ServerSession\getDH(), Auth_OpenID_AuthRequest\getMessage(), Auth_OpenID_ServerError\getReturnTo(), Auth_OpenID_SuccessResponse\getReturnTo(), Auth_OpenID_ServerResponse\needsSigning(), Auth_OpenID_Signatory\sign(), Auth_OpenID_Association\signMessage(), Auth_OpenID_ServerError\toMessage(), and Auth_OpenID_ServerError\whichEncoding().

const Auth_OpenID_SREG_URI = 'http://openid.net/sreg/1.0'

Definition at line 22 of file Message.php.

const Auth_OpenID_THE_OTHER_OPENID1_NS = 'http://openid.net/signon/1.1'

Definition at line 26 of file Message.php.

Referenced by Auth_OpenID_isOpenID1(), and Auth_OpenID_Message\Auth_OpenID_Message().