Package openid :: Package extensions :: Module pape :: Class Response
[frames | no frames]

Type Response

object --+    
         |    
 Extension --+
             |
            Response


A Provider Authentication Policy response, sent from a provider to a relying party
Method Summary
  __init__(self, auth_policies, auth_time, nist_auth_level)
  addPolicyURI(self, policy_uri)
Add a authentication policy to this response
Response or None fromSuccessResponse(cls, success_response)
Create a Response object from a successful OpenID library response (openid.consumer.consumer.SuccessResponse) response message (Class method)
  getExtensionArgs(self)
  parseExtensionArgs(self, args, strict)
Parse the provider authentication policy arguments into the internal state of this object
Inherited from Extension: toMessage
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
NoneType ns_uri: The namespace to which to add the arguments for this extension

Class Variable Summary
str ns_alias = 'pape'

Instance Method Details

addPolicyURI(self, policy_uri)

Add a authentication policy to this response

This method is intended to be used by the provider to add a policy that the provider conformed to when authenticating the user.
Parameters:
policy_uri - The identifier for the preferred type of authentication.

See Also: http://openid.net/specs/openid-provider-authentication-policy-extension-1_0-01.html#auth_policies

getExtensionArgs(self)

Overrides:
openid.extension.Extension.getExtensionArgs

See Also: Extension.getExtensionArgs

parseExtensionArgs(self, args, strict=False)

Parse the provider authentication policy arguments into the internal state of this object
Parameters:
args - unqualified provider authentication policy arguments
strict - Whether to raise an exception when bad data is encountered
Returns:
None. The data is parsed into the internal fields of this object.

Class Method Details

fromSuccessResponse(cls, success_response)

Create a Response object from a successful OpenID library response (openid.consumer.consumer.SuccessResponse) response message
Parameters:
success_response - A SuccessResponse from consumer.complete()
           (type=openid.consumer.consumer.SuccessResponse)
Returns:
A provider authentication policy response from the data that was supplied with the id_res response or None if the provider sent no signed PAPE response arguments.
           (type=Response or None)

Instance Variable Details

ns_uri

The namespace to which to add the arguments for this extension
Type:
NoneType
Value:
'http://specs.openid.net/extensions/pape/1.0'                          

Class Variable Details

ns_alias

Type:
str
Value:
'pape'                                                                 

Generated by Epydoc 2.1 on Fri Jun 27 15:48:22 2008 http://epydoc.sf.net