Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthurnn/omniauth-500px
Omniauth Strategy for 500px
https://github.com/arthurnn/omniauth-500px
Last synced: 14 days ago
JSON representation
Omniauth Strategy for 500px
- Host: GitHub
- URL: https://github.com/arthurnn/omniauth-500px
- Owner: arthurnn
- License: mit
- Created: 2012-04-17T03:15:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T21:40:19.000Z (over 7 years ago)
- Last Synced: 2024-10-04T15:28:36.053Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 15
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
OmniAuth 500px
==============This gem contains the 500px strategy for OmniAuth.
For more information about the 500px api: http://developers.500px.com/
How To Use It
-------------If you are using rails, you need to add the gem to your `Gemfile`:
gem 'omniauth-500px'
You can pull them in directly from github e.g.:
gem "omniauth-500px", :git => "git://github.com/arthurnn/omniauth-500px.git"
Once these are in, you need to add the following to your `config/initializers/omniauth.rb`:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :fiveHundredPx, 'consumer_key', 'consumer_secret'
endUser the name of the class as provider(fiveHundredPx), however to authorize, you should use the provider name which is '500px'.
You will obviously have to put in your key and secret, which you can get from http://developer.500px.com/oauth_clients/new
After you have the gem running and the configuration is done, you can get to the follow url to log the user in:
http://localhost:3000/auth/500px
Now just follow the README at: https://github.com/intridea/omniauth
Questions
---------For any question, fell free to send me a tweet [@arthurnn](http://twitter.com/arthurnn)
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/arthurnn/omniauth-500px/trend.png)](https://bitdeli.com/free "Bitdeli Badge")