Omniauth-Strava
This is a Omniauth Rubygem for authenticating users with Strava.
Installation
Add to your Gemfile:
gem "omniauth-strava"
Run bundle install afterwards.
To config/initializers/omniauth.rb
add:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :strava, Rails.application.secrets.strava_client_id, Rails.application.secrets.strava_api_key, scope: 'public'
end
scope
might be:
public default, private activities are not returned, privacy zones are respected in stream requests
write modify activities, upload on the user’s behalf
view_private view private activities and data within privacy zones
view_private,write both ‘view_private’ and ‘write’ access
Please refer to the Omniauth documentation on how to use Omniauth.