Releases: evilmartians/omniauth-ebay-oauth
1.0.1: Ruby 3.0 compatibility
Fixed
- Ruby 3.0 compatibility (keyword arguments usage)
1.0.0: Allow OmniAuth 2.x, mark gem as stable
Mark gem as stable
Changed
-
Relax dependency to OmniAuth gem to allow using 2.x versions.
See OmniAuth 2.0.0 release notes if you want to upgrade to it in your app.
Add prompt option that allows relogin with different credentials
See Getting user consent documentation page for details.
To dynamically set this option you can use Omniauth's setup phase:
provider :ebay_oauth, ENV['EBAY_CLIENT_ID'], ENV['EBAY_CLIENT_SECRET'],
callback_url: ENV['EBAY_RU_NAME'], name: 'ebay',
setup: >(env) { env['omniauth.strategy'].options[:prompt] = Rack::Request.new(env).params["prompt"] }
Change authentication endpoint
Before: https://signin.ebay.com/authorize – always displays user consent screen “Allow APP_NAME to act on your behalf?”.
After: https://auth.ebay.com/oauth2/authorize – doesn't repeatedly ask for user consent.
I can't find new endpoint address in docs, but it is used in the wild.
Rename strategy to ebay_oauth
This allow to use this strategy simultaneously with old strategies (like omniauth-ebay and ebay_request)
As eBay allows to have only one OAuth RUName per application keyset while allowing to have many Auth'n'auth RUNames, it may be desirable to use Auth'n'auth for auxiliary signins, where obtaining of OAuth tokens is not required.