This skill revokes a user's authentication tokens when their status is changed to false (inactive) by an administrator. It ensures that when an admin deactivates a user account, any existing tokens are immediately invalidated to prevent continued access.
Implementation Details
Parameters
user_id (string, required): The ID of the user whose tokens should be revoked
reason (string, required): The reason for revocation (typically "status changed to false")
Steps
Validate the user exists in the IdentityUser store
Verify the user's IsActive status is false
Use OpenIddict's token revocation service to invalidate all tokens for the user
Log the revocation event with administrator context for audit purposes
Return success confirmation
Related Files
src/Amnil.VideoKyc.Application/Appservices/CustomAppServices/CustomUserAppService.cs - User management service
An administrator updates a user's status to inactive via the user management interface
A user account is disabled through administrative actions
Security policies require immediate token revocation upon status change
Notes
This skill assumes OpenIddict is being used for token management (as evidenced by the OpenIddictDataSeedContributor.cs file)
Integration with the existing user update flow in CustomUserAppService.UpdateAsync method would be required
Proper error handling and logging should be implemented for production use
1---2name: revoke-token3description: Revoke Token Skill4---5# Revoke Token Skill67## Description8This skill revokes a user's authentication tokens when their status is changed to false (inactive) by an administrator. It ensures that when an admin deactivates a user account, any existing tokens are immediately invalidated to prevent continued access.910## Implementation Details1112### Parameters13- `user_id` (string, required): The ID of the user whose tokens should be revoked14- `reason` (string, required): The reason for revocation (typically "status changed to false")1516### Steps171. Validate the user exists in the IdentityUser store182. Verify the user's IsActive status is false193. Use OpenIddict's token revocation service to invalidate all tokens for the user204. Log the revocation event with administrator context for audit purposes215. Return success confirmation2223### Related Files24- `src/Amnil.VideoKyc.Application/Appservices/CustomAppServices/CustomUserAppService.cs` - User management service25- `src/Amnil.VideoKyc.Domain/OpenIddict/OpenIddictDataSeedContributor.cs` - OpenIddict configuration26- `src/Amnil.VideoKyc.AuthServer/VideoKycSignInManager.cs` - Custom sign-in manager2728### Usage29This skill would typically be invoked when:30- An administrator updates a user's status to inactive via the user management interface31- A user account is disabled through administrative actions32- Security policies require immediate token revocation upon status change3334## Notes35- This skill assumes OpenIddict is being used for token management (as evidenced by the OpenIddictDataSeedContributor.cs file)36- Integration with the existing user update flow in CustomUserAppService.UpdateAsync method would be required37- Proper error handling and logging should be implemented for production use
Run npx get-skill add thapaliyabikendra/revoke-token in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Revoke Token Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
thapaliyabikendra (@thapaliyabikendra) published this skill. Their other Agent Skills are listed on their SkillMD profile.