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

Do not append " | " to OneLogin::RubySaml::Response#status_code unnecessarily #585

Merged

Conversation

caioeps
Copy link
Contributor

@caioeps caioeps commented May 8, 2021

It turns out that OneLogin::RubySaml::Response#status_code only work as expected when we have multiple status codes in the response. When it has only one status code it is appending " | " unecessarily to the end.

Steps to reproduce can be found on #584.

@caioeps caioeps changed the title Do not append " | " to OneLogin::RubySaml::Response#status_code unecessarily Do not append " | " to OneLogin::RubySaml::Response#status_code unnecessarily May 8, 2021
@caioeps
Copy link
Contributor Author

caioeps commented May 8, 2021

In my opinion, if we're returning multiple status codes we should probably be returning an array, not a string with a separator.

As doing so could break existing code that relies on this behaviour I choose to keep it as is.

@pitbulk pitbulk merged commit 712c76d into SAML-Toolkits:master May 10, 2021
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

Successfully merging this pull request may close these issues.

2 participants