map_app.decorators

class map_app.decorators.OAuth2Decorator(client_id, secret, scope)[source]
class OAuth2Decorator
oauth_required(method)[source]

Decorator that starts the OAuth 2.0 dance.

Starts the OAuth dance for the logged in user if they haven’t already granted access for this application.

Args:
method: callable, to be decorated method of a webapp.RequestHandler
instance.