Skip to content

Commit

Permalink
more Apple weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 15, 2024
1 parent f352cbf commit d4b8e8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pas/plugins/oidc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ def get_user_info(client, state, args) -> Union[message.OpenIDSchema, dict]:
allowed_authn_method = "client_secret_post"
elif "client_secret_basic" in allowed_authn_methods:
allowed_authn_method = "client_secret_basic"
elif allowed_authn_methods and isinstance(allowed_authn_methods, str):
# Yay, Apple returns a string in the allowed_authn_methods
# We may face the same in some other providers, so we keep it
# as we receive it
allowed_authn_method = allowed_authn_methods

resp = client.do_access_token_request(
state=state, request_args=args, authn_method=allowed_authn_method
Expand Down

0 comments on commit d4b8e8d

Please sign in to comment.