Hi every body,
I’ve try to generate automatically an access_token with authorization_code flow in Postman.
For that I use the option authorization > Oauth2.0 > Authorization Code.
All my parameters are correct and I can genarate a code.
My issue begin when Postman try to exchange this code on my authorization serveur.
The body of the Postman call is the follow one :
{
grant_type: “authorization_code”,
code: “549d2676-1b80-4219-8f2c-e3a1629b38c5”,
redirect_uri: “https://oauth.pstmn.io/v1/callback”,
client_id: “XXXX”
}
But my Identity provider only accept this type of body :
{
grant_type: “authorization_code”,
code: “549d2676-1b80-4219-8f2c-e3a1629b38c5”,
redirect_uri: “https://oauth.pstmn.io/v1/callback”,
}
So I always receive on error 400 bad request.
I want to know if it’s possible to change the parameter of the code exchange call (/access_token) ?
Or if it’s not, if I can just retrieve the code and made the “/access_token” call alone ?
Thanks for your help.
Kind regards