-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add a mechanism to remind users to rotate personal auth tokens #23172
New issue
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
Conversation
…uth tokens
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good approach. Left some high level comments for possible improvements/changes.
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenNotification.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenProviderInterface.php
Outdated
Show resolved
Hide resolved
plugins/UsersManager/AuthTokenNotifications/AuthTokenProviderInterface.php
Outdated
Show resolved
Hide resolved
…sibilities
@sgiehl I've changed the responsibilities a bit, added new interface for the token notification and made it all a bit more reusable and extendable. Please have another look. |
plugins/UsersManager/TokenNotifications/TokenNotificationInterface.php
Outdated
Show resolved
Hide resolved
…types other than email, simplify token provider, remove callbacks
plugins/UsersManager/TokenNotifications/TokenProviderInterface.php
Outdated
Show resolved
Hide resolved
Thanks for your feedback @mneudert, all should be addressed. |
Co-authored-by: Marc Neudert <[email protected]>
Thanks for the reviews everyone! I'll leave the branch open until internal QA is done on it. |
Description:
The PR adds a scheduled task, new config and a mechanism to send notification email to users when their tokens haven't been rotated over the configured number of days.
Review