TheGiftsProject / omniauth-ebay

OmniAuth Strategy for Open eBay Apps
12 stars 16 forks source link

Return data in standard fields #10

Open joshuaflanagan opened 8 years ago

joshuaflanagan commented 8 years ago

OmniAuth specifies a set of fields providers should populate in the auth_hash: https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema

Some of that information was already being returned, but it was using non-standard field names (ex: ebay_id, ebay_token). This preserves those existing fields, for backwards compatibility, but also populates the new standard fields with the appropriate values.

This will make the provider more consistent with other OmniAuth providers, making it easier to reuse code (callback handlers, etc).

None of the existing field values have changed.