-
-
Notifications
You must be signed in to change notification settings - Fork 776
Description
Describe the bug 🐞
After upgrading the Refit Library to Version 9.0.x my code for requesting an authentication token from AWS Cognito is not working anymore.
To confirm the issue I downgraded back to 8.0.0 and the request works.
The payload I am requesting is defined like this.
var payload = new OAuthQueryParameter {
ClientId = $"{settings.ClientId}",
Code = code,
GrantType = "authorization_code",
RedirectUri = settings.CallbackUri,
Scope = settings.Scope
};The interface like this:
[Post("/oauth2/token")]
[Headers("Content-Type", "application/x-www-form-urlencoded")]
Task<OAuthResponse> PostAsync([Body(BodySerializationMethod.UrlEncoded)] OAuthQueryParameter parameters);When I send the POST request the RESPONSE says that the method is not supported.
But based on my logging handler it should be fine.
Step to reproduce
Send a REQUEST to the AWS Cognito Endpoint to request an ACCESS KEY.
I know it will be hard to reproduce it for you.
Could you maybe give me an hint what changed between this two version?
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
The Request should work and a Response with the access key should be returned.
Screenshots 🖼️
No response
IDE
No response
Operating system
No response
Version
No response
Device
No response
Refit Version
No response
Additional information ℹ️
No response