Skip to content

Commit

Permalink
Merge pull request seek4science#1935 from seek4science/no-extra-slash
Browse files Browse the repository at this point in the history
Don't append slash to custom OIDC provider issuer URL
  • Loading branch information
fbacall authored Jul 2, 2024
2 parents 183681d + aafb3cb commit 025f614
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def update_features_enabled
Seek::Config.omniauth_oidc_image&.destroy! if params[:clear_omniauth_oidc_image] == '1'
Seek::Config.omniauth_oidc_image = params[:omniauth_oidc_image]

params[:omniauth_oidc_issuer] = params[:omniauth_oidc_issuer].chomp('/') + '/' if params[:omniauth_oidc_issuer].present?
Seek::Config.omniauth_oidc_issuer = params[:omniauth_oidc_issuer]
Seek::Config.omniauth_oidc_client_id = params[:omniauth_oidc_client_id]
Seek::Config.omniauth_oidc_secret = params[:omniauth_oidc_secret]
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/seek_testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def load_seek_testing_defaults!

Settings.defaults[:omniauth_oidc_enabled] = true
Settings.defaults[:omniauth_oidc_name] = 'SEEK Testing OIDC'
Settings.defaults[:omniauth_oidc_issuer] = 'https://example.com/oidc/'
Settings.defaults[:omniauth_oidc_issuer] = 'https://example.com/oidc'
Settings.defaults[:omniauth_oidc_client_id] = 'def'
Settings.defaults[:omniauth_oidc_secret] = '789'

Expand Down

0 comments on commit 025f614

Please sign in to comment.