I have been struggling to get my authentication url working for my external application. I’m currently working in a sandbox environment, in which I have a test user on my application try to connect with the redirect url to make an oauth token exchange.
The first few times I ran it, I got to the squareup screen that asked for username and password. Unsure what to do, I put my dev email in and password. got denied. Then I tried it again with the fake sandbox account, then didn’t know what password to use - of course then could not make the connection.
Now whenever I try again I get the unable to find client by that client_id error.
I have tried both with and without a state string with the same error appearing. So I’m now really questioning if square is reading my app ID correctly? It appears correctly in my url when the endpoint is hit
I think there’s a few things happening here, preventing your attempt to work.
You can only test sandbox OAuth within your own Square account. If you have a test user, who is a Square merchant, with their own Square account, you can only connect them with OAuth via production.
For the Square merchant trying to provide OAuth permission to your application, the login in should be the same as Seller Dashboard (same as Developer Dashboard).
Let me know if you have any other questions with your OAuth attempt.