dj-jwt-auth 1.9.0__tar.gz → 1.9.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/PKG-INFO +1 -1
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/dj_jwt_auth.egg-info/PKG-INFO +1 -1
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/views.py +4 -3
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/setup.cfg +1 -1
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/MANIFEST.in +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/README.md +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/dj_jwt_auth.egg-info/SOURCES.txt +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/dj_jwt_auth.egg-info/dependency_links.txt +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/dj_jwt_auth.egg-info/requires.txt +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/dj_jwt_auth.egg-info/top_level.txt +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/__init__.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/config.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/exceptions.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/middleware.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/pkce.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/roles.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/settings.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/templates/admin/login.html +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/templates/django-jwt-index.html +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/urls.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/user.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/django_jwt/utils.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/pyproject.toml +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/setup.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/tests/__init__.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/tests/models.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/tests/test.py +0 -0
- {dj_jwt_auth-1.9.0 → dj_jwt_auth-1.9.1}/tests/urls.py +0 -0
|
@@ -43,13 +43,14 @@ class InitiateView(View):
|
|
|
43
43
|
callback_view_name = "receive_redirect_view"
|
|
44
44
|
client_id = None
|
|
45
45
|
scope = "openid"
|
|
46
|
+
params = {}
|
|
46
47
|
|
|
47
48
|
def get(self, request):
|
|
48
49
|
pkce_secret = PKCESecret()
|
|
49
50
|
redirect_uri = request.build_absolute_uri(reverse(self.callback_view_name))
|
|
50
51
|
authorization_endpoint = config.admin().get("authorization_endpoint")
|
|
51
52
|
state = base64.urlsafe_b64encode(get_random_string().encode()).decode()
|
|
52
|
-
params = {
|
|
53
|
+
self.params = {
|
|
53
54
|
"client_id": self.client_id,
|
|
54
55
|
"redirect_uri": redirect_uri,
|
|
55
56
|
"response_type": "code",
|
|
@@ -61,8 +62,8 @@ class InitiateView(View):
|
|
|
61
62
|
"nonce": get_random_string(),
|
|
62
63
|
}
|
|
63
64
|
cache.set(state, str(pkce_secret), timeout=600)
|
|
64
|
-
log.info(f"OIDC Initiate: {authorization_endpoint}?{urlencode(params)}")
|
|
65
|
-
return redirect(f"{authorization_endpoint}?{urlencode(params)}")
|
|
65
|
+
log.info(f"OIDC Initiate: {authorization_endpoint}?{urlencode(self.params)}")
|
|
66
|
+
return redirect(f"{authorization_endpoint}?{urlencode(self.params)}")
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
class CallbackView(View):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|