oauth2 — Controller classes

class oauth2.AuthorizationController(access_token_store, auth_code_store, client_store, site_adapter, token_generator, response_class=<class 'oauth2.web.Response'>)[source]
AuthorizationController.add_grant(grant)[source]

Adds a Grant that the server should support.

AuthorizationController.dispatch(request, environ)[source]

Checks which Grant supports the current request and dispatches to it.

Parameters:
  • request – An instance of oauth2.web.Request.
  • environ – Hash containing variables of the environment.
Returns:

An instance of oauth2.web.Response.

Read the Docs v: v0.4.0
Versions
latest
v0.4.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.