Add it to your Gemfile:
In a Rails app, add
Rails.application.config.middleware.use OmniAuth::Builder do provider :heroku_sso, "HEROKU_SALT" end
Or, in a Sinatra app:
use OmniAuth::Builder do provider :heroku_sso, "HEROKU_SALT" end post "/auth/heroku_sso/callback" do auth = request.env['omniauth.auth] # Use the auth info end
- Added "nav-data" to the "info" portion of the auth hash to allow handing off to
Heroku::Nav::Provider.htmlwithout going outside the auth hash.
- Added "name" field to the "info" portion of the auth hash. In Omniauth, this field is required. However, because Heroku only gives us an email address, that value is used here.
- Added "token" field to the "credentials" portion of the auth hash. You don't need this in regular use, but it's provided for completeness and debugging.
- Initial release.