Replies: 3 comments 1 reply
-
Yes, the identity provider authentication cookie is still relevant since that makes single signon possible. |
Beta Was this translation helpful? Give feedback.
-
Thank you @RolandGuijt. So from the sound of it, the other uses are more of SSO related. One example scenario is the current Identity Server Server Side implementation has a bug where it doesn't update the actual cookie. So even though someone can have a refresh token let's say 1 year, the Identity Server cookie itself remains the default expiry (i.e. 14 days). But in terms of the session relative to the current application if it implements BFF, it should not be directly be affected by the Identity Server Issued Cookie. So I'm assuming that if the cookie was for example to physically expire (e.g. persistent), but the user is still active in the client application, that the user should get logged out as long as their session is still active. |
Beta Was this translation helpful? Give feedback.
-
Couple of things to keep in mind here:
So:
About your point about logging out: Does this clear things up for you? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When a user logs in, whether it is using BFF or out of the box blazor authentication, they get issued 2 Identity Server related cookie, the authentication cookie (application.identity / idsrv) and the idsrv.session. Usually, the expiry of persistent authentication cookie is set globally for all application (i.e. 14 days) and for front end framework (e.g. blazor), the cookie is refreshed through the silent login process regardless of the refresh token which can have a per client lifetime.
My question is the Identity Provider authentication cookie still relevant if I start using BFF with server side session support? I understand that if the session is managed by the server side BFF, then it will determine whether the user's session is still valid based on the application's own cookie and if the refresh token is also still valid. Also, if there is any interaction between the BFF server and Identity Server, it would be through the backend.
Beta Was this translation helpful? Give feedback.
All reactions