Package openid :: Package consumer :: Module discover :: Class OpenIDServiceEndpoint
[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 x.__class__.__doc__ for signature
  usesExtension(self, extension_uri)
  preferredNamespace(self)
  supportsType(self, type_uri)
Does this endpoint support this type?
  compatibilityMode(self)
  isOPIdentifier(self)
  parseService(self, yadis_url, uri, type_uris, service_element)
Set the state of this object based on the contents of the service element.
  getLocalID(self)
Return the identifier that should be sent as the openid.identity parameter to the server.
  __str__(self)
str(x)

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


Class Methods [hide private]
  fromBasicServiceEndpoint(cls, endpoint)
Create a new instance of this class from the endpoint object passed in.
[OpenIDServiceEndpoint] fromHTML(cls, uri, html)
Parse the given document as HTML looking for an OpenID <link rel=...>
OpenIDServiceEndpoint fromOPEndpointURL(cls, op_endpoint_url)
Construct an OP-Identifier OpenIDServiceEndpoint object for a given OP Endpoint URL

Class Variables [hide private]
  openid_type_uris = ['http://specs.openid.net/auth/2.0/server', 'http://...

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 x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

usesExtension(self, extension_uri)

source code 

preferredNamespace(self)

source code 

supportsType(self, type_uri)

source code 

Does this endpoint support this type?

I consider /server endpoints to implicitly support /signon.

compatibilityMode(self)

source code 

isOPIdentifier(self)

source code 

parseService(self, yadis_url, uri, type_uris, service_element)

source code 

Set the state of this object based on the contents of the service element.

getLocalID(self)

source code 

Return the identifier that should be sent as the openid.identity parameter to the server.

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

fromHTML(cls, uri, html)
Class Method

source code 

Parse the given document as HTML looking for an OpenID <link rel=...>
Returns: [OpenIDServiceEndpoint]

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:
['http://specs.openid.net/auth/2.0/server',
 'http://specs.openid.net/auth/2.0/signon',
 'http://openid.net/signon/1.1',
 'http://openid.net/signon/1.0']                                       
      

Instance Variable Details [hide private]

canonicalID


For XRI, the persistent identifier.

identity_url


the verified identifier.