AppAuth-iOS
AppAuth-iOS copied to clipboard
authStateByPresentingAuthorizationRequest does not pass additional parameters to token request
Describe the bug
When trying to authenticate with an OIDC provider that utilizes https://datatracker.ietf.org/doc/html/rfc7523 (JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants) - it is not possible to use the convenience function authStateByPresentingAuthorizationRequest
This function calls the OIDAuthorizationResponse tokenExchangeRequest - rather than allowing to pass through Additional Parameters by allowing the use of OIDAuthorizationResponse tokenExchangeRequestWithAdditionalParameters - even where Additional Parameters are passed to OIDAuthState
This seems like a workflow that has been overlooked.