Package openid :: Module message
[hide private]
[frames] | no frames]

Module message

source code

Extension argument processing code

Classes [hide private]
  UndefinedOpenIDNamespace
Raised if the generic OpenID namespace is accessed when there is no OpenID namespace set for this message.
  InvalidOpenIDNamespace
Raised if openid.ns is not a recognized value.
  NamespaceAliasRegistrationError
Raised when an alias or namespace URI has already been registered.
  Message
In the implementation of this object, None represents the global namespace as well as a namespace with no key.
  NamespaceMap
Maintains a bijective map between namespace uris and aliases.
Functions [hide private]
 
registerNamespaceAlias(namespace_uri, alias)
Registers a (namespace URI, alias) mapping in a global namespace alias map.
source code
Variables [hide private]
  IDENTIFIER_SELECT = 'http://specs.openid.net/auth/2.0/identifi...
  SREG_URI = 'http://openid.net/sreg/1.0'
  OPENID1_NS = 'http://openid.net/signon/1.0'
  THE_OTHER_OPENID1_NS = 'http://openid.net/signon/1.1'
  OPENID1_NAMESPACES = ('http://openid.net/signon/1.0', 'http://...
  OPENID2_NS = 'http://specs.openid.net/auth/2.0'
  NULL_NAMESPACE = <Symbol Null namespace>
  OPENID_NS = <Symbol OpenID namespace>
  BARE_NS = <Symbol Bare namespace>
  OPENID1_URL_LIMIT = 2047
  OPENID_PROTOCOL_FIELDS = ['ns', 'mode', 'error', 'return_to', ...
  no_default = object()
  registered_aliases = {'sreg': 'http://openid.net/extensions/sr...
  __package__ = 'openid'
Function Details [hide private]

registerNamespaceAlias(namespace_uri, alias)

source code 

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.


Variables Details [hide private]

IDENTIFIER_SELECT

Value:
'http://specs.openid.net/auth/2.0/identifier_select'

OPENID1_NAMESPACES

Value:
('http://openid.net/signon/1.0', 'http://openid.net/signon/1.1')

OPENID_PROTOCOL_FIELDS

Value:
['ns',
 'mode',
 'error',
 'return_to',
 'contact',
 'reference',
 'signed',
 'assoc_type',
...

registered_aliases

Value:
{'sreg': 'http://openid.net/extensions/sreg/1.1'}