<filename>authentik/core/views/debug.py
"""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)

<filename>authentik/core/views/debug.py
"""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)

debug view Easily access AccessDeniedResponse