An OmniAuth strategy for integrating with the Park Place app.
omniauth-parkplace
is hosted on a private gem server. Add the following source
to the top of your Gemfile
source 'https://[email protected]/me/'
Add this line to your application's Gemfile:
gem 'omniauth-parkplace', git: '[email protected]:AdvancedEnergyEconomy/omniauth-parkplace.git'
And then execute:
$ bundle
Run the generator using:
rails g omniauth:parkplace:install
This will install an initializer to config/initializers
.
This strategy depends on the following environment variables:
PARK_PLACE_URL
- the URL that points to Park PlacePARK_PLACE_CLIENT_ID
- the client ID from Park PlacePARK_PLACE_CLIENT_SECRET
- the secret token from Park Place
You can set their values by following the instructions here to hook up your application to Park Place as a SSO client application.
These variables can be used to test against different instances of the Park Place app.
Gotcha: When using dotenv
to load ENV variables from a .env
file,
make sure that gem 'dotenv'
appears before gem 'omniauth-parkplace'
in your
Gemfile
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request