evilmartians / omniauth-ebay-oauth

OmniAuth Strategy for eBay Apps (for using with eBay REST APIs)
MIT License
7 stars 6 forks source link

Callback not working #7

Open Wulfshade opened 1 year ago

Wulfshade commented 1 year ago

I'm testing with the minimal sinatra app but it is not working. I'm hosting the app on a FQDN accessible over the web.

Expectation: to be taken the callback url once authorised.

Result: eBay shows an access granted page indicating I can now close the page. It does not take me back to the app with the token details.

Envek commented 1 year ago

I just re-checked it and it works as expected, bringing me back to the auth accepted url from the RuName settings.

Please check following things:

  1. That RuName you're using is OAuth enabled in the eBay Developers portal at https://developer.ebay.com/my/auth/?env=production&index=0&auth_type=oauth

  2. Whether you're using correct sandbox or production credentials. Sinatra app in the Readme uses sandbox mode by default. Add sandbox: false option to use live (production) credentials.

     provider :ebay_oauth, ENV['EBAY_APPID'], ENV['EBAY_CERTID'],
    -          callback_url: ENV['EBAY_RUNAME'], name: 'ebay'
    +          callback_url: ENV['EBAY_RUNAME'], name: 'ebay', sandbox: false