Skip to main content
Solved

Unauthorized Client Error when getting token

  • June 15, 2022
  • 2 replies
  • 1440 views

Forum|alt.badge.img

Hi all,

 

When trying to get a token we receive “unauthorized_client” error. I double checked client id and secret are correct, and the “code” generated with the same client id without any issue on prior step. Reading the error code I suspect there may be a place where we give authorization the client application to get tokens? Not sure… Any help is appreciated

 

 

 

Best answer by Marco Villasenor

Hello @ericyz this error is probably related to the redirect_uri being different.

 

Please check the value you send in the token endpoint is the same you used for the authorization endpoint and that you added that same redirect URI to the client in the connected applications screen.

 

2 replies

Marco Villasenor
Jr Varsity II
Forum|alt.badge.img+2

Hello @ericyz this error is probably related to the redirect_uri being different.

 

Please check the value you send in the token endpoint is the same you used for the authorization endpoint and that you added that same redirect URI to the client in the connected applications screen.

 


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • June 16, 2022

thanks so much, that resolved the issue and now I am able to get tokens!