Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 15, 2024
1 parent 3a922bd commit 146e83e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pas/plugins/oidc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def get_user_info(client, state, args) -> Union[message.OpenIDSchema, dict]:
# So that's the reason why we only allow `client_secret_post` (the
# only one allowed by Apple) or `client_secret_basic` (the most
# basic one, allowed by most of the providers we have worked with)
if 'client_secret_post' in allowed_authn_methods:
allowed_authn_method = 'client_secret_post'
elif 'client_secret_basic' in allowed_authn_methods:
if "client_secret_post" in allowed_authn_methods:
allowed_authn_method = "client_secret_post"
elif "client_secret_basic" in allowed_authn_methods:
allowed_authn_method = "client_secret_basic"

resp = client.do_access_token_request(
Expand Down

0 comments on commit 146e83e

Please sign in to comment.