dashboard.blueprints.auth package

Module contents

dashboard.blueprints.auth.register_bp(app)

Submodules

dashboard.blueprints.auth.oauth module

This allows users to be validated using the OAuth protocol

See https://blog.miguelgrinberg.com/post/oauth-authentication-with-flask for an overview.

class dashboard.blueprints.auth.oauth.GithubSignIn

Bases: OAuthSignIn

authorize()
callback()
class dashboard.blueprints.auth.oauth.GitlabSignIn

Bases: OAuthSignIn

authorize()
callback()
str_rnd = None
class dashboard.blueprints.auth.oauth.OAuthSignIn(provider_name)

Bases: object

authorize()
callback()
get_callback_url()
classmethod get_provider(provider_name)
providers = None
random_string(size=10, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')

Generates a random string

dashboard.blueprints.auth.views module

dashboard.blueprints.auth.views.oauth_authorize(provider)
dashboard.blueprints.auth.views.oauth_callback(provider)