asgard.http.auth package

Submodules

asgard.http.auth.auth_required module

class asgard.http.auth.auth_required.TokenTypes[código fonte]

Base: object

JWT = 'JWT'
USER_TOKEN = 'Token'
asgard.http.auth.auth_required.auth_required(fn)[código fonte]
asgard.http.auth.auth_required.check_auth_token(token)[código fonte]
asgard.http.auth.auth_required.check_jwt_token(jwt_token)[código fonte]
asgard.http.auth.auth_required.make_response(json_data, status_code)[código fonte]
asgard.http.auth.auth_required.not_authenticated(_)[código fonte]

asgard.http.auth.jwt module

asgard.http.auth.jwt.jwt_encode(user: asgard.models.user.User, account: asgard.models.account.Account) → bytes[código fonte]

Encodes a new JWT Token https://tools.ietf.org/html/rfc7519#section-4.1.5

Module contents