Home | Trees | Indices | Help |
|
---|
|
Simple registration request and response parsing and object representation
This module contains objects representing simple registration requests and responses that can be used with both OpenID relying parties and OpenID providers.AuthRequest
object before making the
checkid_
request to the OpenID provider:
auth_request.addExtension(SRegRequest(required=['email']))
SRegRequest.fromOpenIDRequest
, gets the
user's approval and data, creates a SRegResponse
object and adds it to the
id_res
response:
sreg_req = SRegRequest.fromOpenIDRequest(checkid_request.message) # [ get the user's approval and data, informing the user that # the fields in sreg_response were requested ] sreg_resp = SRegResponse.extractResponse(sreg_req, user_data) sreg_resp.toMessage(openid_response.fields)
SRegResponse.fromSuccessResponse
to extract
the data from the OpenID response:
sreg_resp = SRegResponse.fromSuccessResponse(success_response)
Since: 2.0
|
|||
SRegRequest An object to hold the state of a simple registration request. |
|||
SRegResponse Represents the data returned in a simple registration response inside of an OpenID id_res response.
|
|
|||
bool |
supportsSReg(endpoint) Does the given endpoint advertise support for simple registration? |
|
|||
data_fields = {'language': 'Language', 'dob': 'Date of Birth', 'ge...
|
|||
ns_uri = 'http://openid.net/extensions/sreg/1.1'
|
|||
sreg_data_fields The names of the data fields that are listed in the sreg spec, and a description of them in English |
|||
sreg_uri The preferred URI to use for the simple registration namespace and XRD Type value |
|
Does the given endpoint advertise support for simple registration?
|
|
data_fields
|
ns_uri
|
sreg_data_fieldsThe names of the data fields that are listed in the sreg spec, and a description of them in English |
sreg_uriThe preferred URI to use for the simple registration namespace and XRD Type value |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri May 11 15:30:19 2007 | http://epydoc.sourceforge.net |