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

Add Google Identity Platform support #137

Open
realchrisolin opened this issue Mar 26, 2016 · 5 comments · May be fixed by #324
Open

Add Google Identity Platform support #137

realchrisolin opened this issue Mar 26, 2016 · 5 comments · May be fixed by #324

Comments

@realchrisolin
Copy link
Contributor

We already support Facebook and Strava to register/login. Let's add Google!

@sethherr
Copy link
Member

Pull request!?

@realchrisolin
Copy link
Contributor Author

It's coming. I opened an issue so there's something trackable.

@sethherr
Copy link
Member

👍 😄

@realchrisolin
Copy link
Contributor Author

I lost what little work I had done on this when Blackboard gave me the boot. Gonna give it another go, using the Strava integration as a sort of template since I have no idea what I'm doing (any advice would be awesome).

app/assets/stylesheets/revised/sections/sign_in_up.scss:    .strava-login {
app/assets/stylesheets/revised/sections/sign_in_up.scss:      @include oauth-login-bar($strava-login-color);
app/models/integration.rb:    if provider_name == 'facebook' || provider_name == 'strava'
app/views/sessions/new.html.haml:          %a.strava-login{ href: '/auth/strava' }
app/views/sessions/new.html.haml:              = image_tag 'revised/strava_login.svg'
app/views/users/new.html.haml:          %a.strava-login{ href: '/auth/strava' }
app/views/users/new.html.haml:              = image_tag 'revised/strava_login.svg'
config/initializers/omniauth.rb:  provider :strava, ENV['STRAVA_KEY'], ENV['STRAVA_SECRET'], scope: 'public'
Gemfile:gem 'omniauth-strava'
Gemfile.lock:    omniauth-strava (0.0.6)
Gemfile.lock:  omniauth-strava
spec/fixtures/integration_data_strava.json:  "provider": "strava",
spec/models/integration_spec.rb:  let(:strava_file) { File.read(Rails.root.join('spec', 'fixtures', 'integration_data_strava.json')) }
spec/models/integration_spec.rb:    context 'strava integration' do
spec/models/integration_spec.rb:      let(:info) { JSON.parse(strava_file) }

@realchrisolin
Copy link
Contributor Author

realchrisolin commented May 17, 2017

@realchrisolin realchrisolin linked a pull request May 17, 2017 that will close this issue
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 a pull request may close this issue.

2 participants