Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Moved the Google Omniauth key id_info from root into extra #1181

Merged
merged 3 commits into from
May 16, 2018

Conversation

SirRawlins
Copy link
Contributor

The Google Omniauth "id_info" hash should not be in the auth root, but under "extra", I moved it to where it rightfully belongs.

Here are the details from the omniauth-google-oauth2 docs about the hash structure https://github.com/zquestz/omniauth-google-oauth2#auth-hash

Tests updated to account for this change.

@SirRawlins SirRawlins changed the title Moved the Google Omniauth key id_info from root into extra Fix: Moved the Google Omniauth key id_info from root into extra Apr 12, 2018
Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please rebase and run bundle install && bundle exec rubocop -a && bundle exec rake to make sure that the code is ready to use and is following a few good practices?

vbrazo
vbrazo approved these changes May 15, 2018
… where it rightfully belongs. Here's the details from the omniauth-google-oauth2 docs about the hash structure https://github.com/zquestz/omniauth-google-oauth2#auth-hash
…strings should have been booleans and fixnums, these types were taken from the omniauth-google docs. https://github.com/zquestz/omniauth-google-oauth2#auth-hash - I found my code which was passing tests was failing in production because the real life auth hash didn't match that faked.
@coveralls
Copy link

coveralls commented May 16, 2018

Pull Request Test Coverage Report for Build 2021

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 33.923%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/test_faker_omniauth.rb 0 6 0.0%
Totals Coverage Status
Change from base Build 2022: 0.0%
Covered Lines: 1476
Relevant Lines: 4351

💛 - Coveralls

@vbrazo
Copy link
Member

vbrazo commented May 16, 2018

Awesome 💯

@vbrazo vbrazo merged commit b36e1d3 into faker-ruby:master May 16, 2018
@SirRawlins
Copy link
Contributor Author

@vbrazo that's been rebased now, and some rubocop violations corrected. (although they pre-dated my recent commits)

@vbrazo vbrazo self-requested a review July 19, 2018 01:38
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
…r-ruby#1181)

* Moved the Google Omniauth key id_info from root into extra as this is where it rightfully belongs. Here's the details from the omniauth-google-oauth2 docs about the hash structure https://github.com/zquestz/omniauth-google-oauth2#auth-hash

* Omniauth types changes, some booleans should have been strings, some strings should have been booleans and fixnums, these types were taken from the omniauth-google docs. https://github.com/zquestz/omniauth-google-oauth2#auth-hash - I found my code which was passing tests was failing in production because the real life auth hash didn't match that faked.

* Fixed rubocop violations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants