p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 276 forks source link

Passing custom parameters to token_uri #354

Open mitar opened 3 years ago

mitar commented 3 years ago

It seems there is no way to pass custom parameters to token_uri. So I want to do a PKCE flow where a custom parameter should be passed both to the authorize_uri (https://github.com/p2/OAuth2/issues/180) and when code is obtained and exchanged at token_uri, to token_uri as well.

Looking at code here I am confused, it looks like passed params are not added to req at all. Moreover, I do not see any way to pass params in at all. Is this something which is half-done and has not been tested properly?