Skip to content

Conversation

@cristianstanescu
Copy link

Omniauth describes the authentication hash schema for versions greater than 1.0 at https://github.com/omniauth/omniauth/wiki/Auth-Hash-Schema.

This pull request takes care of the following issues:

  • the complete information about the user that Paypal sends is returned under extra -> raw_info instead of just extra as described in the Omniauth wiki
  • redundant fields (given_name and family_name) are not returned under info as there already are clear, defined attributes for that kind of information (first_name``last_name). The fields are only kept as extra information about the user. The purpose of Omniauth is also to try and normalize different services

At the same time, tests are added for #info and #extra to verify compliance.

Normalize the hash information to comply with Omniauth strategy
developemnt recommendations:

- remove key/value pairs from #info that are missing from the
Omniauth Auth Hash Schema.

- add all user information returned from Paypal as a value for the
'raw_info' key in #extra.

Add tests for #info, #extra and also for #uid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant