-
Notifications
You must be signed in to change notification settings - Fork 4k
During the cleanup token process, add support for an event when token is expired. #2359
Comments
Not a bad idea. The main problem/trick I foresee is how would in the event would it call into your code? I don't think we'd be able to use the DI system, because the way the loop is running (outside an HTTP request). |
@LindaLawton this might be a nice project given that you mentioned your Friday plans :) |
Sounds like fun considering i have not played in the event system yet. Assign me to it. I know where to find you if i have any questions free to point me in the correct direction. The last bug took me four hours to find and five minutes to fix :) |
Awesome!! thanks. Let me know if can help. |
@LindaLawton Thanks for the support. I am curious to see how things are going. Any updates? Thanks, |
I didn't have long to look at it but was unavailable to figure out what even calls it. its like the setting isn't used anywhere. I should have some more time to look at it Friday. |
@LindaLawton checking in.. how are things going? |
unfortunately we had some issues at work that have priority, and now we are into vacation season. I won't have to look at this until the end of August. |
How would this event look like? Just a delegate? Or something from DI? DI is tricky since this token thing runs outside of http requests. |
A delegate is fine. Understand the DI complexity. |
Ok so turns out i was already resolving stuff from DI in the token cleanup, so we can do a service in DI |
ok, done -- and with an interface in DI. |
Thank you!! Do you have a unit test to show how it works? |
no, but the sample EF host does. if you'd like to add tests, we'd love them |
Hi, please can you show some piece of code? |
@gsvitak @brockallen, can you please help me find the piece of code that do this feature? thanks in advance |
for future references you should implement |
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. |
Hello
I have a third party system that uses the concept of sessions to maintain user state. I need the ability to automatically clean up the sessions in the third party system when the tokens are expired. I would love to have an event that is fired by the token cleanup process so I can implement my logic to clean up the sessions.
I would be willing to help with the work for this feature request if needed.
Thanks,
G
The text was updated successfully, but these errors were encountered: