question

davetherock avatar image
davetherock asked bakernotes sent

OAuth 2.0 - Failed to validate authentication code - Clover redirects to '/oauth/authorize' instead of /oauth/v2/authorize

I recently built my app's OAuth v2 integration in sandbox, and kept running into:

{'status': 'Unauthorized', 'message': 'Failed to validate authentication code.'}

Turns out, the code being passed to my API was from 'oauth/authorize' instead of '/oauth/v2/authorize'. This is the default for navigating from the left panel in sandbox as well as the default for clicking "Example OAuth Request" in the Edit REST Configuration Menu.

SOLUTION:

Change

https://sandbox.dev.clover.com/oauth/authorize?client_id={CLIENT_ID}

to

https://sandbox.dev.clover.com/oauth/v2/authorize?client_id={CLIENT_ID}
OAuthAuthauth tokens
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kanelime8 avatar image
kanelime8 answered

Your post is very kind. Please know how much I appreciate it, and how much I look forward to reading your future writings.

mapquest driving directions

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jennyhana avatar image
jennyhana answered

I really appreciate your article, I feel it is very accurate. io games

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shikshade avatar image
shikshade answered

I really appreciate your article, I feel it is very accurate.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community