Skip to content

zealot128-os/omniauth-strava

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

omniauth strategy for strava

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%