K
Kinde4mo ago
Chris

502 Bad Gateway on POST /oauth2/token endpoint

I signed up recently and am trying to setup a non-SDK integration on a Go back-end. The /oauth2/auth request works fine and I am able to login, but when I try to convert the callback code to an access token, I am getting a 502 Bad Gateway. Below is the example request I am making: https://collectivecore.kinde.com/oauth2/token?client_id=<valid_client_id>&client_secret=<valid_client_secret>&grant_type=authorization_code&redirect_uri=http://localhost:3000&code=<valid_code_from_callback> I am not sure what I am doing wrong here.
2 Replies
Chris
ChrisOP4mo ago
I figured out the issue. The documentation is a bit confusing here. The request is a POST request, but it visualizes it at query params. I converted everything to the POST body and it worked.
IkiTg07
IkiTg074mo ago
Could you please link the documentation you are refering to ?

Did you find this page helpful?