9077eff34d
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
13 lines
350 B
Python
13 lines
350 B
Python
"""debug view"""
|
|
from django.http import HttpRequest, HttpResponse
|
|
from django.views.generic import View
|
|
|
|
from authentik.policies.denied import AccessDeniedResponse
|
|
|
|
|
|
class AccessDeniedView(View):
|
|
"""Easily access AccessDeniedResponse"""
|
|
|
|
def dispatch(self, request: HttpRequest) -> HttpResponse:
|
|
return AccessDeniedResponse(request)
|