oneid.auth

class oneid.auth.OneIDAuthenticationService(api_id=None, api_key=None, server_flag=u'')[source]

Encapsulates a connection to the oneID servers

Parameters:
set_credentials(api_id=u'', api_key=u'')[source]

Set the credentials used for access to the OneID Helper Service

Parameters:
  • api_id – Your OneID API ID
  • api_key – Your OneID API key
validate(oneid_payload)[source]

Validate the data received by a callback

Parameters:oneid_payload – The dictionary you want to validate, typically the payload from a OneID sign in call
Returns:if successful, oneid_payload, updated with the response from oneID. Otherwise, the error response from oneID.
success(oneid_response)[source]

Check errorcode in a response

Parameters:oneid_response – A response from validate()
Returns:True if the response indicates success, False otherwise.