question

tsdev avatar image
tsdev asked zgreathouse Deactivated answered

Getting 404 Not Found in new production app

Publishing a new app to the marketplace, which grants access to a desktop application using OAuth2. Both the reviewer and myself are getting a 404 Not Found when logging in as a merchant to the clover/authorize screen. Pricing is set up, permissions are set up. I'm not sure what else to check. It works in staging with the exact same settings.
App MarketMerchantOAuthProduction
13 comments
10 |2000

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

zgreathouse avatar image zgreathouse commented ·

Can you please provide a code snippet of how you are calling the OAuth endpoints? (Please be sure not to include any sensitive information.)

0 Likes 0 ·
tsdev avatar image tsdev zgreathouse commented ·

I'm doing this through a web browser control in WinForms. The URL I take the user to ishttps://www.clover.com/oauth/authorize?client_id=[app_client_id]

0 Likes 0 ·
zgreathouse avatar image zgreathouse tsdev commented ·

In order to troubleshoot your OAuth implementation we require more than a single endpoint, as OAuth requires multiple endpoints. Can you provide a code snippet of your OAuth flow?

Here is a link to our OAuth Docs:
https://docs.clover.com/build/oauth-2-0/

Here are a couple of sample OAuth implementations:
https://github.com/cloverhackathons/OAuthNodeExpress
https://github.com/cloverhackathons/OAuthPython

0 Likes 0 ·
Show more comments

1 Answer

zgreathouse avatar image
zgreathouse Deactivated answered
The program is calling "GET https://www.clover.com/oauth/authorize?client_id=9NVM0V4GF1C3M", but the app being tested has a different client_id, 6E37WF3EV4B26. You need to pass the correct client ID.
10 |2000

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