Skip to content

Commit cd17838

Browse files
committed
fixup! fixup! fixup! fixup! fixup! auth: Skip OIDC flow if Bearer access_token is present (bug 1979246)
1 parent 34dbaf4 commit cd17838

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mozilla_django_oidc/auth.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ def authenticate(self, request, **kwargs):
289289
return None
290290

291291
# If a bearer token is present in the request, use it to authenticate the user.
292-
authorization = request.META.get("HTTP_AUTHORIZATION")
293-
if authorization:
292+
if authorization := request.META.get("HTTP_AUTHORIZATION"):
294293
scheme, token = authorization.split(maxsplit=1)
295294
if scheme.lower() == "bearer":
296295
# get_or_create_user and get_userinfo uses neither id_token nor payload.

0 commit comments

Comments
 (0)