Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Heroku SSO authentication strategy for Devise

branch: master

fix gemspec bug

latest commit 16a56f7591
Adam Schepis authored
Octocat-spinner-32 app Working prototype
Octocat-spinner-32 config Use underscore module name in route scope
Octocat-spinner-32 lib Update version.rb
Octocat-spinner-32 script Working prototype
Octocat-spinner-32 test Working prototype
Octocat-spinner-32 .gitignore Working prototype
Octocat-spinner-32 Gemfile Working prototype
Octocat-spinner-32 Gemfile.lock Working prototype
Octocat-spinner-32 MIT-LICENSE Working prototype
Octocat-spinner-32 README.md Update README.md
Octocat-spinner-32 Rakefile Working prototype
Octocat-spinner-32 devise-heroku.gemspec fix gemspec bug
README.md

devise-heroku

Heroku SSO authentication strategy for Devise

Integration

Add devise-heroku to your Gemfile

  gem 'devise-heroku', git: "http://github.com/aschepis/devise-heroku.git"

Add heroku_sso_authenticable to your default warden strategies in your devise.rb file

  manager.default_strategies(:scope => :user).unshift :heroku_sso_authenticable

Add an initializer to set devise-heroku configuration parameters (config/initializers/devise_heroku.rb)

  DeviseHeroku.setup do |config|
    config.resource = User
    config.sso_salt = "2D4g4a84jf03"
    config.redirect_path = '/'
  end

That should do it! Restart your rails server and you should be able to verify that your app works with Heroku SSO by testing it with kensa

  kensa sso 3865

Contributing

Issues and Pull Requests are welcome! This code is very preliminary and I got it up and working for my project. There are a number of things that I don't love but I wanted to put this out there to benefit others.

Something went wrong with that request. Please try again.