Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Dec 27, 2023
1 parent 061b888 commit 444314d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion mozilla_django_oidc/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ def raise_token_response_error(self, response):
if response.status_code == 200:
return
# otherwise something is up...
http_error_msg = f"Get Token Error (url: {response.url}, status: {response.status_code}, body: {response.text})"
http_error_msg = (
f"Get Token Error (url: {response.url}, "
f"status: {response.status_code}, "
f"body: {response.text})"
)
raise HTTPError(http_error_msg, response=response)

def get_userinfo(self, access_token, id_token, payload):
Expand Down
1 change: 0 additions & 1 deletion mozilla_django_oidc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def get(self, request):
auth.logout(request)
assert not request.user.is_authenticated
elif "code" in request.GET and "state" in request.GET:

# Check instead of "oidc_state" check if the "oidc_states" session key exists!
if "oidc_states" not in request.session:
return self.login_failure()
Expand Down

0 comments on commit 444314d

Please sign in to comment.