Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure you can see the metadata page even if saml is not yet configured #971

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
# setup for multiprovider SAML options
dynamic_options_generator = lambda { |identity_provider_id, rack_env|
identity_provider = IdentityProvider.find(identity_provider_id)
identity_provider.options = {} if identity_provider.options.blank? # Protect against nil or empty string
identity_provider.parsed_options(rack_env)
}
identity_provider_id_regex = /\d+/
Expand Down
2 changes: 2 additions & 0 deletions lib/omni_auth/strategies/saml_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

# OVERRIDE OmniAuth v2.1.1

# monkey patch to support metadata paths - hacked version of:
# https://github.com/salsify/omniauth-multi-provider/issues/4#issuecomment-366452170
#
Expand Down
Loading