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

Type OpenIDServiceEndpoint

object --+
         |
        OpenIDServiceEndpoint


Object representing an OpenID service endpoint.
Method Summary
  __init__(self)
  __str__(self)
  compatibilityMode(self)
  fromBasicServiceEndpoint(cls, endpoint)
Create a new instance of this class from the endpoint object passed in. (Class method)

list of OpenIDServiceEndpoint

@raises XRDSError: When the XRDS does not parse.
fromDiscoveryResult(cls, discoveryResult)
Create endpoints from a DiscoveryResult. (Class method)
[OpenIDServiceEndpoint] fromHTML(cls, uri, html)
Parse the given document as HTML looking for an OpenID <link rel=...> (Class method)
OpenIDServiceEndpoint fromOPEndpointURL(cls, op_endpoint_url)
Construct an OP-Identifier OpenIDServiceEndpoint object for a given OP Endpoint URL (Class method)

[OpenIDServiceEndpoint]

@raises XRDSError: When the XRDS does not parse.
fromXRDS(cls, uri, xrds)
Parse the given document as XRDS looking for OpenID services. (Class method)
  getLocalID(self)
Return the identifier that should be sent as the openid.identity parameter to the server.
  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.
  preferredNamespace(self)
  supportsType(self, type_uri)
Does this endpoint support this type?
  usesExtension(self, extension_uri)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Instance Variable Summary
  canonicalID: For XRI, the persistent identifier.
  identity_url: the verified identifier.

Class Variable Summary
list openid_type_uris = ['http://specs.openid.net/auth/2.0/se...

Instance Method Details

getLocalID(self)

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

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

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

supportsType(self, type_uri)

Does this endpoint support this type?

I consider /server endpoints to implicitly support /signon.

Class Method Details

fromBasicServiceEndpoint(cls, endpoint)

Create a new instance of this class from the endpoint object passed in.
Returns:
None or OpenIDServiceEndpoint for this endpoint object

fromDiscoveryResult(cls, discoveryResult)

Create endpoints from a DiscoveryResult.
Parameters:
discoveryResult
           (type=DiscoveryResult)
Returns:

list of OpenIDServiceEndpoint

@raises XRDSError: When the XRDS does not parse.

fromHTML(cls, uri, html)

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

fromOPEndpointURL(cls, op_endpoint_url)

Construct an OP-Identifier OpenIDServiceEndpoint object for a given OP Endpoint URL
Parameters:
op_endpoint_url - The URL of the endpoint
Returns:
OpenIDServiceEndpoint

fromXRDS(cls, uri, xrds)

Parse the given document as XRDS looking for OpenID services.
Returns:

[OpenIDServiceEndpoint]

@raises XRDSError: When the XRDS does not parse.

Instance Variable Details

canonicalID

For XRI, the persistent identifier.

identity_url

the verified identifier.

Class Variable Details

openid_type_uris

Type:
list
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']                                       

Generated by Epydoc 2.1 on Mon Aug 27 19:22:44 2007 http://epydoc.sf.net