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

OneLogin::RubySaml::SettingError: Invalid settings, idp_slo_service_url is not set! #198

Open
anwarNazig opened this issue Jul 27, 2021 · 3 comments

Comments

@anwarNazig
Copy link

Hi following the googleApp wiki https://github.com/apokalipto/devise_saml_authenticatable/wiki/Google-Apps i found that:
settings.idp_slo_target_url is set to empty. i've seen that instead of target we should use service as shown below:

Config.saml_configure do |settings|
settings.idp_slo_service_url = ""
end
The problem is when i try to logout fro mthe application, i get that settings.idp_slo_service_url must be set:

OneLogin::RubySaml::SettingError: Invalid settings, idp_slo_service_url is not set!

the problem is duo to the fact that i want to logout from my application (ISP) and redirect to the google login page when i sign_out .

@adamstegman
Copy link
Collaborator

Great find, that empty value looks incorrect. Is there a URL that Google gives you for this setting you can use?

@anwarNazig
Copy link
Author

No Google does not give any url for this setting due to the fact that they does not support single sign out. do you have any suggestion on how to solve the issue, or at least a workaround for the moment?

@adamstegman
Copy link
Collaborator

Yes, you can override after_sign_out_path_for in the controller to send them somewhere else, like back to Google or to an unauthenticated page in your site.

In an initializer, try adding:

Devise::SamlSessionsController.class_eval do
  def after_sign_out_path_for(_)
    root_path
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants