pomodorr.auth package

Submodules

pomodorr.auth.auth_classes module

class pomodorr.auth.auth_classes.CustomJSONWebTokenAuthentication

Bases: pomodorr.auth.auth_classes.CustomJWTWebTokenAuthentication, rest_framework_jwt.authentication.JSONWebTokenAuthentication

class pomodorr.auth.auth_classes.CustomJWTWebTokenAuthentication

Bases: rest_framework_jwt.authentication.BaseJSONWebTokenAuthentication

authenticate_credentials(payload)

Returns an user that matches the payload’s user id and email unless it is not active or blocked.

pomodorr.auth.auth_serializers module

class pomodorr.auth.auth_serializers.CustomJSONWebTokenSerializer(*args, **kwargs)

Bases: rest_framework_jwt.serializers.JSONWebTokenSerializer

validate(attrs)
class pomodorr.auth.auth_serializers.CustomRefreshJSONWebTokenSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Bases: rest_framework_jwt.serializers.RefreshJSONWebTokenSerializer, pomodorr.auth.auth_serializers.CustomVerificationBaseSerializer

class pomodorr.auth.auth_serializers.CustomVerificationBaseSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Bases: rest_framework_jwt.serializers.VerifyJSONWebTokenSerializer

class pomodorr.auth.auth_serializers.CustomVerifyJSONWebTokenSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)

Bases: pomodorr.auth.auth_serializers.CustomVerificationBaseSerializer

pomodorr.auth.auth_views module

class pomodorr.auth.auth_views.CustomObtainJSONWebToken(**kwargs)

Bases: rest_framework_jwt.views.JSONWebTokenAPIView

serializer_class

alias of pomodorr.auth.auth_serializers.CustomJSONWebTokenSerializer

class pomodorr.auth.auth_views.CustomRefreshJSONWebToken(**kwargs)

Bases: rest_framework_jwt.views.JSONWebTokenAPIView

serializer_class

alias of pomodorr.auth.auth_serializers.CustomRefreshJSONWebTokenSerializer

class pomodorr.auth.auth_views.CustomVerifyJSONWebToken(**kwargs)

Bases: rest_framework_jwt.views.JSONWebTokenAPIView

serializer_class

alias of pomodorr.auth.auth_serializers.CustomVerifyJSONWebTokenSerializer

pomodorr.auth.auth_views.custom_obtain_jwt_token(self, request, *args, **kwargs)
pomodorr.auth.auth_views.custom_refresh_jwt_token(self, request, *args, **kwargs)
pomodorr.auth.auth_views.custom_verify_jwt_token(self, request, *args, **kwargs)

pomodorr.auth.middlewares module

class pomodorr.auth.middlewares.JsonTokenAuthMiddleware(inner)

Bases: object

class pomodorr.auth.middlewares.JsonTokenAuthMiddlewareInstance(scope, middleware)

Bases: pomodorr.auth.auth_classes.CustomJWTWebTokenAuthentication

Token authorization middleware for Django Channels 2

pomodorr.auth.middlewares.JsonTokenAuthMiddlewareStack(inner)
class pomodorr.auth.middlewares.JsonWebTokenAuthenticationFromScope

Bases: pomodorr.auth.auth_classes.CustomJWTWebTokenAuthentication

Extracts the JWT from a channel scope (instead of an http request)

get_jwt_value(scope)

Module contents