Client requires a Redirect URL to use OAuth
chebyte opened this issue · comments
maurotorres commented
hi guys when I tried to run the url that returns this code
client = Square::OAuth2::Client.new(
'<your-client-id>',
'<your-client-secret>',
redirect_uri: 'https://client.example.com/callback'
)
I get the error
Client requires a Redirect URL to use OAuth
the url that I get is
https://squareup.com/oauth2/authorize?client_id=CLIENTID&redirect_uri=redirect_url&response_type=code
anyone knows why?
Nov Matake commented
The redirect_uri isn't registered to Square API dashboard?
Probably asking Square developer support is better for this kind of questions.
maurotorres commented
yeap I forget it, thanks!
Nathan Pickworth commented
misleading error message!