This is the implementation of the common logic for OpenID consumers.
It is unaware of the application in which it is running.
|
__init__(self,
store)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
begin(self,
service_endpoint)
Create an AuthRequest object for the specified service_endpoint. |
source code
|
|
|
complete(self,
message,
endpoint,
return_to)
Process the OpenID message, using the specified endpoint and
return_to URL as context. |
source code
|
|
|
_complete_cancel(self,
message,
endpoint,
_) |
source code
|
|
|
_complete_error(self,
message,
endpoint,
_) |
source code
|
|
|
_complete_setup_needed(self,
message,
endpoint,
_) |
source code
|
|
|
_complete_id_res(self,
message,
endpoint,
return_to) |
source code
|
|
|
_completeInvalid(self,
message,
endpoint,
_) |
source code
|
|
|
_checkReturnTo(self,
message,
return_to)
Check an OpenID message and its openid.return_to value against a
return_to URL from an application. |
source code
|
|
|
|
Response
|
_doIdRes(self,
message,
endpoint,
return_to)
Handle id_res responses that are not cancellations of immediate mode
requests. |
source code
|
|
|
|
|
|
|
_idResCheckSignature(self,
message,
server_url) |
source code
|
|
|
|
|
|
|
_verifyDiscoveryResultsOpenID2(self,
resp_msg,
endpoint) |
source code
|
|
|
_verifyDiscoveryResultsOpenID1(self,
resp_msg,
endpoint) |
source code
|
|
NoneType
|
_verifyDiscoverySingle(self,
endpoint,
to_match)
Verify that the given endpoint matches the information extracted from
the OpenID assertion, and raise an exception if there is a mismatch. |
source code
|
|
openid.consumer.discover.OpenIDServiceEndpoint
|
_discoverAndVerify(self,
claimed_id,
to_match_endpoints)
Given an endpoint object created from the information in an OpenID
response, perform discovery and verify the discovery results,
returning the matching endpoint that is the result of doing that
discovery. |
source code
|
|
|
|
bool
|
_checkAuth(self,
message,
server_url)
Make a check_authentication request to verify this message. |
source code
|
|
|
_createCheckAuthRequest(self,
message)
Generate a check_authentication request message given an id_res
message. |
source code
|
|
|
_processCheckAuthResponse(self,
response,
server_url)
Process the response message from a check_authentication request,
invalidating associations if requested. |
source code
|
|
openid.association.Association or NoneType
|
|
openid.association.Association
|
|
tuple or None
|
|
|
_requestAssociation(self,
endpoint,
assoc_type,
session_type)
Make and process one association request to this endpoint's OP
endpoint URL. |
source code
|
|
(association session type (depends on session_type),
openid.message.Message)
|
|
str
|
|
openid.association.Association
|
_extractAssociation(self,
assoc_response,
assoc_session)
Attempt to extract an association from the response, given the
association response message and the established association session. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|