-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
core: add bulk session revocation #18564
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18564 +/- ##
==========================================
- Coverage 93.21% 93.16% -0.05%
==========================================
Files 933 933
Lines 51255 51270 +15
==========================================
- Hits 47775 47765 -10
- Misses 3480 3505 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
- Implemented BulkDeleteSessionSerializer for handling bulk session deletions. - Added bulk_delete action to AuthenticatedSessionViewSet for revoking sessions by user IDs. - Updated API schema to include new endpoint for bulk session deletion. - Modified UserBulkRevokeSessionsForm to utilize the new bulk delete API.
Co-authored-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <[email protected]>
PassiveSerializer for BulkDeleteSessionSerializer Co-authored-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <[email protected]>
user_pks instead of user_ids Co-authored-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <[email protected]>
|
@rissson, have made the requested changes, please review |
…ELETE method and query parameters
rissson
left a comment
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.
Just a minor nit, otherwise the backend looks good to me!
Co-authored-by: Marc 'risson' Schmitt <[email protected]> Signed-off-by: CodeMax IT Solutions Pvt. Ltd. <[email protected]>
Done. :) |
Pull Request: Add Bulk Session Revocation Functionality for Admins
Details
This PR adds bulk session revocation functionality for Admins.
UserBulkRevokeSessionsFormadded that allows administrators to revoke all active sessions for selected users, with a confirmation dialog to prevent accidental revocation.Changes Made
UserBulkRevokeSessionsForm.tscomponent for handling this bulk session revocationUserListPage.tsto integrate the new bulk action with the user listFiles Changed:
web/src/admin/users/UserBulkRevokeSessionsForm.ts(+207 lines)web/src/admin/users/UserListPage.ts(+82/-38 lines)