Package openid :: Package consumer :: Module discover :: Class OpenIDServiceEndpoint
[hide private]
[frames] | no frames]

Class OpenIDServiceEndpoint

source code

object --+
         |
        OpenIDServiceEndpoint

Object representing an OpenID service endpoint.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
usesExtension(self, extension_uri) source code
 
preferredNamespace(self) source code
 
supportsType(self, type_uri)
Does this endpoint support this type?
source code
 
getDisplayIdentifier(self)
Return the display_identifier if set, else return the claimed_id.
source code
 
compatibilityMode(self) source code
 
isOPIdentifier(self) source code
 
parseService(self, yadis_url, uri, type_uris, service_element)
Set the state of this object based on the contents of the service element.
source code
 
getLocalID(self)
Return the identifier that should be sent as the openid.identity parameter to the server.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
fromBasicServiceEndpoint(cls, endpoint)
Create a new instance of this class from the endpoint object passed in.
source code
[OpenIDServiceEndpoint]
fromHTML(cls, uri, html)
Parse the given document as HTML looking for an OpenID <link rel=...>
source code
[OpenIDServiceEndpoint]
fromXRDS(cls, uri, xrds)
Parse the given document as XRDS looking for OpenID services.
source code
list of OpenIDServiceEndpoint
fromDiscoveryResult(cls, discoveryResult)
Create endpoints from a DiscoveryResult.
source code
OpenIDServiceEndpoint
fromOPEndpointURL(cls, op_endpoint_url)
Construct an OP-Identifier OpenIDServiceEndpoint object for a given OP Endpoint URL
source code
Class Variables [hide private]
  openid_type_uris = [OPENID_IDP_2_0_TYPE, OPENID_2_0_TYPE, OPEN...
Instance Variables [hide private]
  canonicalID
For XRI, the persistent identifier.
  identity_url
the verified identifier.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

supportsType(self, type_uri)

source code 

Does this endpoint support this type?

I consider /server endpoints to implicitly support /signon.

fromBasicServiceEndpoint(cls, endpoint)
Class Method

source code 

Create a new instance of this class from the endpoint object passed in.

Returns:
None or OpenIDServiceEndpoint for this endpoint object

fromXRDS(cls, uri, xrds)
Class Method

source code 

Parse the given document as XRDS looking for OpenID services.

Returns: [OpenIDServiceEndpoint]
Raises:

Since: 2.1.0

fromDiscoveryResult(cls, discoveryResult)
Class Method

source code 

Create endpoints from a DiscoveryResult.

Parameters:
Returns: list of OpenIDServiceEndpoint
Raises:

Since: 2.1.0

fromOPEndpointURL(cls, op_endpoint_url)
Class Method

source code 

Construct an OP-Identifier OpenIDServiceEndpoint object for a given OP Endpoint URL

Parameters:
  • op_endpoint_url - The URL of the endpoint
Returns: OpenIDServiceEndpoint

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

openid_type_uris

Value:
[OPENID_IDP_2_0_TYPE, OPENID_2_0_TYPE, OPENID_1_1_TYPE, OPENID_1_0_TYP\
E,]