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

Persist claim issuers in server side sessions #1660

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

josephdecock
Copy link
Member

@josephdecock josephdecock commented Dec 6, 2024

Resolves #1546

@AndersAbel this came up in context of a support issue you worked where someone couldn't logout using saml and sustainsys, so I've added you as a reviewer if you have time - is this what you were hoping for?

@josephdecock josephdecock added this to the is-7.1.0 milestone Dec 6, 2024
Copy link
Member

@damianh damianh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. But also wait for Anders

@josephdecock josephdecock removed this from the is-7.1.0 milestone Dec 9, 2024
@AndersAbel
Copy link
Member

This should work, but it would be possible to improve the optimization for the default issuer.

All claims in a ClaimsIdentity from a remote authentication provider typically have the same issuer. For Saml2 it's the Entity Id of the Idp (e.g. "https://stubidp.sustainsys.com/Metadata"). For OIDC it's the issuer/authority (e.g. "https://demo.duendesoftware.com").

For storage in a DB I don't think it's an issue to store the same string for each claim. As far as I remember this code would not be used to store anything in a cookie. If that was the case. I would have tried to optimize further to keep the issuer string once somewhere.

@josephdecock
Copy link
Member Author

I believe this is only ever used to create the ticket data that gets stored in a server side session.

@josephdecock josephdecock merged commit b5712bd into main Dec 10, 2024
5 checks passed
@josephdecock josephdecock deleted the joe/server-side-session-issuers branch December 10, 2024 19:46
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.

Claim Issuer not persisted when using Server Side Sessions
3 participants