AppAuth-iOS icon indicating copy to clipboard operation
AppAuth-iOS copied to clipboard

authStateByPresentingAuthorizationRequest does not pass additional parameters to token request

Open Mezzle opened this issue 3 years ago • 0 comments

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.

Mezzle avatar Mar 06 '22 13:03 Mezzle