Home | Trees | Indices | Help |
|
---|
|
|
|||
OpenIDServiceEndpoint Object representing an OpenID service endpoint. |
|
|||
str or unicode or NoneType |
findOPLocalIdentifier(service_element,
type_uris) Find the OP-Local Identifier for this xrd:Service element. |
||
normalizeURL(url) Normalize a URL, converting normalization failures to DiscoveryFailure |
|||
arrangeByType(service_list,
preferred_types) Rearrange service_list in a new list so services are ordered by types listed in preferred_types. |
|||
getOPOrUserServices(openid_services) Extract OP Identifier services. |
|||
(str, list(OpenIDServiceEndpoint)) |
discoverYadis(uri) Discover OpenID services for a URI. |
||
discoverXRI(iname) | |||
discoverNoYadis(uri) | |||
discoverURI(uri) | |||
discover(identifier) |
|
|||
OPENID_1_0_NS = 'http://openid.net/xmlns/1.0'
|
|||
OPENID_IDP_2_0_TYPE = 'http://specs.openid.net/auth/2.0/server'
|
|||
OPENID_2_0_TYPE = 'http://specs.openid.net/auth/2.0/signon'
|
|||
OPENID_1_1_TYPE = 'http://openid.net/signon/1.1'
|
|||
OPENID_1_0_TYPE = 'http://openid.net/signon/1.0'
|
|
Find the OP-Local Identifier for this xrd:Service element. This considers openid:Delegate to be a synonym for xrd:LocalID if both OpenID 1.X and OpenID 2.0 types are present. If only OpenID 1.X is present, it returns the value of openid:Delegate. If only OpenID 2.0 is present, it returns the value of xrd:LocalID. If there is more than one LocalID tag and the values are different, it raises a DiscoveryFailure. This is also triggered when the xrd:LocalID and openid:Delegate tags are different.
|
Normalize a URL, converting normalization failures to DiscoveryFailure |
Rearrange service_list in a new list so services are ordered by types listed in preferred_types. Return the new list. |
Extract OP Identifier services. If none found, return the rest, sorted with most preferred first according to OpenIDServiceEndpoint.openid_type_uris. openid_services is a list of OpenIDServiceEndpoint objects. Returns a list of OpenIDServiceEndpoint objects. |
Discover OpenID services for a URI. Tries Yadis and falls back on old-style <link rel='...'> discovery if Yadis fails.
|
|
|
|
|
|
OPENID_1_0_NS
|
OPENID_IDP_2_0_TYPE
|
OPENID_2_0_TYPE
|
OPENID_1_1_TYPE
|
OPENID_1_0_TYPE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri May 11 15:30:19 2007 | http://epydoc.sourceforge.net |