devise_saml_authenticatable icon indicating copy to clipboard operation
devise_saml_authenticatable copied to clipboard

SamlSessionsController

Open reemgawad opened this issue 2 years ago • 1 comments
trafficstars

Following this wiki guide's instruction to patch the gem's Devise::SamlSessionsController I realised I don't have this controller anywhere. Even when I try to generate the devise controllers, no saml_sessions_controller.rb file is generated.

This is in my gemfile:

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gem "devise_saml_authenticatable", github: "apokalipto/devise_saml_authenticatable"

Routes:

devise_for :users

User model:

  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :validatable, :saml_authenticatable

In config/devise.rb, I followed this guide for using Google Apps as the IdP.

Any help with this would be really appreciated! Thank you.

reemgawad avatar Dec 10 '22 23:12 reemgawad

That controller is actually part of the gem, so this is actually a monkey-patch! You should be able to add the code snippet from that wiki page to an initializer.

adamstegman avatar Dec 16 '22 23:12 adamstegman