Open realchrisolin opened 8 years ago
Pull request!?
It's coming. I opened an issue so there's something trackable.
:+1: :smile:
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) }
We already support Facebook and Strava to register/login. Let's add Google!