Skip to content

Commit

Permalink
Merge pull request #98 from TAMULib/production-redirect
Browse files Browse the repository at this point in the history
Afford configurable sign in and sign out paths
  • Loading branch information
wwelling authored Jul 22, 2024
2 parents eb9d794 + 59f1db6 commit 0b5fb73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ class ApplicationController < ActionController::Base

add_breadcrumb "Digital Collections", Rails.application.config.collections_url

def after_sign_in_path_for(resource)
ENV['SAML_SIGN_IN_SUCCESS_PATH'] || '/'
end

end
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
# header that matches the ID of the SAML request. (Default is false)
# config.saml_validate_in_response_to = false

config.saml_sign_out_success_url = ENV['SAML_SP_ENTITY_ID'] || "http://localhost:3000"
config.saml_sign_out_success_url = ENV['SAML_SIGN_OUT_SUCCESS_URL'] || "http://localhost:3000"

# Configure with your SAML settings (see ruby-saml's README for more information: https://github.com/onelogin/ruby-saml).
config.saml_configure do |settings|
Expand Down

0 comments on commit 0b5fb73

Please sign in to comment.