Package openid :: Package consumer :: Module consumer :: Class SuccessResponse
[frames] | no frames]

Class SuccessResponse

source code

object --+    
         |    
  Response --+
             |
            SuccessResponse

A response with a status of SUCCESS. Indicates that this request is a successful acknowledgement from the OpenID server that the supplied URL is, indeed controlled by the requesting agent.

Instance Methods [hide private]
  __init__(self, endpoint, message, signed_fields=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  isOpenID1(self)
Was this authentication response an OpenID 1 authentication response?
  isSigned(self, ns_uri, ns_key)
Return whether a particular key is signed, regardless of its namespace alias
  getSigned(self, ns_uri, ns_key, default=None)
Return the specified signed field if available, otherwise return default
  getSignedNS(self, ns_uri)
Get signed arguments from the response message.
  extensionResponse(self, namespace_uri, require_signed)
Return response arguments in the specified namespace.
str getReturnTo(self)
Get the openid.return_to argument from this response.

Inherited from Response: setEndpoint

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


Class Variables [hide private]
  status = 'success'
SUCCESS

Instance Variables [hide private]
OpenIDServiceEndpoint endpoint
The endpoint that authenticated the identifier.
  identity_url
The identity URL that has been authenticated
  signed_fields
The arguments in the server's response that were signed and verified.

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, endpoint, message, signed_fields=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

isOpenID1(self)

source code 

Was this authentication response an OpenID 1 authentication response?

isSigned(self, ns_uri, ns_key)

source code 

Return whether a particular key is signed, regardless of its namespace alias

getSigned(self, ns_uri, ns_key, default=None)

source code 

Return the specified signed field if available, otherwise return default

getSignedNS(self, ns_uri)

source code 

Get signed arguments from the response message. Return a dict of all arguments in the specified namespace. If any of the arguments are not signed, return None.

extensionResponse(self, namespace_uri, require_signed)

source code 

Return response arguments in the specified namespace.
Parameters:
  • namespace_uri - The namespace URI of the arguments to be returned.
  • require_signed - True if the arguments should be among those signed in the response, False if you don't care.

    If require_signed is True and the arguments are not signed, return None.

getReturnTo(self)

source code 

Get the openid.return_to argument from this response.

This is useful for verifying that this request was initiated by this consumer.
Returns: str
The return_to URL supplied to the server on the initial request, or None if the response did not contain an openid.return_to argument.

Class Variable Details [hide private]

status


SUCCESS
Value:
'success'                                                              
      

Instance Variable Details [hide private]

endpoint


The endpoint that authenticated the identifier. You may access other discovered information related to this endpoint, such as the CanonicalID of an XRI, through this object.
Type:
OpenIDServiceEndpoint

identity_url


The identity URL that has been authenticated

signed_fields


The arguments in the server's response that were signed and verified.