-
Notifications
You must be signed in to change notification settings - Fork 4k
Added AddUserSession extension method #4026
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'm curious what your custom user session implementation needs to do? |
I am attempting to implement multitenancy support with IdentityServer. The custom IUserSession implementation comes into play around cookie naming; specifically the IssueSessionIdCookie method and the idsrv.session cookie. When 2 independent sessions against 2 different tenants are active on the same machine & browser there seems to be a conflict regarding the session id cookie. So, I had to add some logic to the IssueSessionIdCookie method to add a tenant id suffix to the cookie name.
Is there a better way to manage this? |
Hmm, ok.
No idea, to be honest. I've not tried to tackle that. |
Anyway, thx for the PR. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What issue does this PR address?
Adds a missing IIdentityServerBuilder extension method to add a custom IUserSession implementation.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements
Other information:
No Unit Tests were added since none of the other existing extension methods include test coverage.