KindeK
Kinde3y ago
22 replies
Eranga

Trouble handling callback from SSO always returns 400

I'm a bit stuck in this section https://kinde.com/docs/developer-tools/using-kinde-without-an-sdk/#handling-the-callback in the documentation.

When I send the POST request to oauth2/token from Postman, I get a 400 status code everytime. I am also using PKCE verification.

I use this https://tonyxu-io.github.io/pkce-generator/ to generate the code challenge and my code verifier is code_verifier.

This is my URL for creating the SSO login for our users: https://novade.kinde.com/oauth2/auth?response_type=code&client_id=279d4ec6490d402b817c4d7aec122373&redirect_uri=https://lite-staging.novade.net/login-sso&scope=openid+profile+email&state=abcdeftgh&code_challenge_method=S256&code_challenge=73oehA2tBul5grZPhXUGQwNAjxh69zNES8bu2bVD0EM

This is the URL, I try to send a POST request to and get 400: https://novade.kinde.com/oauth2/token?grant_type=authorization_code&client_id=279d4ec6490d402b817c4d7aec122373&redirect_uri=https://lite-staging.novade.net/login-sso&code=XKRMtXK-SM4SorkGIZ2pJqycIXmY_EJfuEjk18yXBgU.jvdQuoUBYfJVk7Bm2JfW3S2KRu408iIlWzD2DrCBLLE&code_verifier=code_verifier

Am I doing something wrong with PKCE verification? Or any suggestion?
Kinde
App infrastructure as a service.
Kinde
Kinde Docs
Our developer tools provide everything you need to get started with Kinde.
Using Kinde without an SDK - Developer tools - Help center
Was this page helpful?