spresso.controller package

Submodules

spresso.controller.application module

class Application(response_class=<class 'spresso.model.web.base.Response'>)[source]

Bases: object

Endpoint of requests to the SPRESSO provider.

Parameters:response_class (Response) – The response class.
add_grant(grant)[source]

Add a grant to the application.

dispatch(request, environ)[source]

Dispatching of a client request. Choose the correct grant type from the request and dispatch the request to it.

Parameters:
  • request (Request) – The request.
  • environ (dict) – The WSGI environment.
Returns:

func:’GrantHandler.process’ call on the appropriate grant, returning a response to the requesting client.

Return type:

The

Module contents