How to take action on OIDC session creation, for example log the time? #838
Unanswered
chrisinmtown
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please tell me if there's any way to hook onto the event of the OIDC module creating a new session for a user. I'd like to treat that event as a login to my application and (ideally) record it in the app database.
Just for context, with centralized authentication an employee may login to the company-wide auth provider in the morning, and then use the application for the first time in the afternoon. The application has no dedicated "login" page, but the afternoon visit is a "login" for the application's purposes. Right now the only workaround I have found to track a user's "last login" entry is to update it on every application page access, which is pretty wasteful.
I looked thru the mod_auth_openidc config and saw there are some options for logout like a URL to visit. Is there anything for login?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions