raykoshima
raykoshima12mo ago

can't request token

when I POST request with this payload it said invalid_request grant_type missing but I have grant_type sent with payload or I need to GET?
No description
No description
No description
10 Replies
raykoshima
raykoshimaOP12mo ago
request with postman also give a same result
No description
raykoshima
raykoshimaOP12mo ago
here is my configuration
No description
FFO
FFO12mo ago
Hey usually the client would send the params as form parameters https://openid.net/specs/openid-connect-core-1_0.html#TokenRequest Have you tried that?
Final: OpenID Connect Core 1.0 incorporating errata set 2
OpenID Connect Core 1.0 incorporating errata set 2
raykoshima
raykoshimaOP12mo ago
I have but it still same
No description
No description
raykoshima
raykoshimaOP12mo ago
but for postman it can now I'm so confused I added header Content-Type = application/x-www-form-urlencoded
No description
raykoshima
raykoshimaOP12mo ago
here the payload for this request
No description
raykoshima
raykoshimaOP12mo ago
I solve that frontend has sent raw url to endpoint that why it not work now he sent encodeurl to endpoint now it work
FFO
FFO12mo ago
Perfect, thanks for sharing! Btw. I think postman has built-in support for oauth2 which can request the token for you.
raykoshima
raykoshimaOP12mo ago
i think so

Did you find this page helpful?