I need to run some custom code (manage another custom cookie), at the moment when IdentityServer performs the sliding of the expiration time on the session cookie (idsrv).
How or where can I hook into the IdentityServer pipeline to accomplish this? Is there something I can override or is there an event I can subscribe to?
I am currently using IdentityServer4 3.x in an asp.net core 3.1 app.
AddIdentityServer extension is just adding default cookie handlers. And setting the CookieAuthenticationOptions props based on value passed.
Based on official description, sliding expiration works like this:
considering these, if you need do sth on
the sliding of the expiration time on the session cookieyou need to have a custom cookie handler which does things differently