I am using Square Connect and have a trouble using OAuth API. (Square Connect OAuth API)
When I set a https redirect-url at the apps page, the endpoint gives me an error response without showing a sign-in page. If I send the same request setting localhost (http), it works fine. Why do I get access-denied? Is there any extra things I need to do for https redirect-url?
Details for https redirect-url (Failed)
SSL is self-signed certificate, redirect url ishttps://{MY_SERVER}/callback
, and iptables is stopped.- Request
https://squareup.com/oauth2/authorize?client_id={MY_APPLICATION_ID}&response_type=code&session=false&state=test
- Callback
https://{MY_SERVER}/callback?state=test&error=access_denied&error_description=Authorization+not+allowed&response_type=code
- Request
Details for http redirect-url (Success)
Redirect url ishttp://localhost/callback
.- Request
https://squareup.com/oauth2/authorize?client_id={MY_APPLICATION_ID}&response_type=code&session=false&state=test
- Callback
http://localhost/callback?state=test&code={MY_CODE}&response_type=code
- Request
Any help would be greatly appreciated!