We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You will see both a login and logout message printed to stdout for the user
You only see a logout message printed to stdout for the user
As a temporary solution I changed the code in https://github.com/nautobot/nautobot/blob/develop/examples/okta/group_sync.py and added the following so I can get a log for when a user using OKTA logs in:
<--snip--> loggerauth = logging.getLogger("nautobot.auth.login") <--snip--> def group_sync(uid, user=None, response=None, *args, **kwargs): <--snip--> loggerauth.info(f"User {uid} successfully authenticated") <--snip-->
The text was updated successfully, but these errors were encountered:
Django should have a signal that it uses to update the last_login timestamp for user. Hooking into that signal is likely the best way to solve this.
last_login
Sorry, something went wrong.
gsnider2195
Successfully merging a pull request may close this issue.
Environment
Steps to Reproduce
Expected Behavior
You will see both a login and logout message printed to stdout for the user
Observed Behavior
You only see a logout message printed to stdout for the user
Extra Info
As a temporary solution I changed the code in https://github.com/nautobot/nautobot/blob/develop/examples/okta/group_sync.py and added the following so I can get a log for when a user using OKTA logs in:
The text was updated successfully, but these errors were encountered: