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

I18n error with SP-initiated SLO #218

Open
dolsysmith opened this issue Feb 26, 2024 · 0 comments
Open

I18n error with SP-initiated SLO #218

dolsysmith opened this issue Feb 26, 2024 · 0 comments

Comments

@dolsysmith
Copy link

Hi there,

I'm trying to implement single logout following the documentation, including the SessionsController as specified in the README. When I visit the /users/auth/saml/spslo endpoint directly, SLO works as expected. However, when using the Devise sign_out route, the app throws an error: I18n::InvalidLocale ("en/spslo" is not a valid locale). Using pry, I have confirmed that the user_saml_omniauth_authorize_path method is returning a URL like this: https://test.scholarspace.library.gwu.edu/users/auth/saml?locale=en, to which the /spslo is getting appended, hence the error.

I imagine I could get around it with a Regex in the sessions controller's after_sign_out_path_for method, but that feels hacky, so if there's a configuration somewhere I'm missing, I'd love to know.

I appreciate your help, and thanks for your work on this gem -- apart from this error, it's working like a charm.

Best,
Dolsy

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

1 participant