|
14 | 14 | from jwcrypto.jwt import JWTExpired
|
15 | 15 | from oauthlib.common import add_params_to_uri
|
16 | 16 |
|
| 17 | +from ..compat import login_not_required |
17 | 18 | from ..exceptions import (
|
18 | 19 | ClientIdMissmatch,
|
19 | 20 | InvalidIDTokenError,
|
|
39 | 40 | Application = get_application_model()
|
40 | 41 |
|
41 | 42 |
|
| 43 | +@method_decorator(login_not_required, name="dispatch") |
42 | 44 | class ConnectDiscoveryInfoView(OIDCOnlyMixin, View):
|
43 | 45 | """
|
44 | 46 | View used to show oidc provider configuration information per
|
@@ -106,6 +108,7 @@ def get(self, request, *args, **kwargs):
|
106 | 108 | return response
|
107 | 109 |
|
108 | 110 |
|
| 111 | +@method_decorator(login_not_required, name="dispatch") |
109 | 112 | class JwksInfoView(OIDCOnlyMixin, View):
|
110 | 113 | """
|
111 | 114 | View used to show oidc json web key set document
|
@@ -134,6 +137,7 @@ def get(self, request, *args, **kwargs):
|
134 | 137 |
|
135 | 138 |
|
136 | 139 | @method_decorator(csrf_exempt, name="dispatch")
|
| 140 | +@method_decorator(login_not_required, name="dispatch") |
137 | 141 | class UserInfoView(OIDCOnlyMixin, OAuthLibMixin, View):
|
138 | 142 | """
|
139 | 143 | View used to show Claims about the authenticated End-User
|
@@ -211,6 +215,7 @@ def _validate_claims(request, claims):
|
211 | 215 | return True
|
212 | 216 |
|
213 | 217 |
|
| 218 | +@method_decorator(login_not_required, name="dispatch") |
214 | 219 | class RPInitiatedLogoutView(OIDCLogoutOnlyMixin, FormView):
|
215 | 220 | template_name = "oauth2_provider/logout_confirm.html"
|
216 | 221 | form_class = ConfirmLogoutForm
|
|
0 commit comments