feat(KLEF-140): Add authentik custom flow to control sessions - #2
Merged
Conversation
isaacwallace123
approved these changes
Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
This PR addresses a critical Insecure Direct Object Reference (IDOR) vulnerability within the Authentik plugin's gRPC service. It implements strict cross-checking to guarantee that a user cannot terminate active sessions belonging to other accounts.
Related Issues
Closes #
Changes
What's Included
RevokeSessiongRPC handler.SessionIDis explicitly tied to theUserIDincluded in the request before issuing a termination command.What's Not Included
Testing
How Was This Tested?
codes.PermissionDeniedif ownership validation fails.Test Coverage
Breaking Changes
Does this PR introduce breaking changes?
If yes, describe the impact and any required migration steps:
Security Considerations
If any box is checked, describe the security impact and any mitigations applied:
Documentation
Does this PR require documentation updates?
If yes, check all that apply:
README.mdARCHITECTURE.md/docsUI/UX (If Applicable)
Screenshots or recordings:
Pre-Merge Checklist
feat:,fix:,chore:,docs:,refactor:,test:)Reviewer Notes
Ensure the Authentik API calls used for session verification are optimized to avoid latency spikes during batch revocation events.