Package openid :: Package server :: Module server :: Class Decoder
[frames] | no frames]

Class Decoder

source code

object --+
         |
        Decoder

I decode an incoming web request in to a OpenIDRequest.

Instance Methods
 
__init__(self, server)
Construct a Decoder.
source code
OpenIDRequest
decode(self, query)
I transform query parameters into an OpenIDRequest.
source code
 
defaultDecoder(self, message, server)
Called to decode queries when no handler for that mode is found.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, server)
(Constructor)

source code 

Construct a Decoder.

Parameters:
  • server (Server) - The server which I am decoding requests for. (Necessary because some replies reference their server.)
Overrides: object.__init__

decode(self, query)

source code 

I transform query parameters into an OpenIDRequest.

If the query does not seem to be an OpenID request at all, I return None.

Parameters:
  • query (dict) - The query parameters as a dictionary with each key mapping to one value.
Returns: OpenIDRequest
Raises:
  • ProtocolError - When the query does not seem to be a valid OpenID request.

defaultDecoder(self, message, server)

source code 

Called to decode queries when no handler for that mode is found.

Raises: