Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Authn Authz?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-authn-authz)
---
name: authn-authz
description: "Authentication and authorisation: sessions vs JWT, OAuth/OIDC, RBAC/ABAC and ownership checks."
tags: [backend, security]
---
# Authn Authz
## When to use
- Login flows, protected resources, multi-tenant apps
## Procedure
1. Use a proven provider or library
2. Short-lived tokens with refresh rotation
3. Check ownership on every resource access
4. Centralise policy
5. Test negative cases
## Checklist
- [ ] IDOR tests exist
- [ ] Tokens revocable
## Anti-patterns
- Rolling your own crypto
- Trusting role claims from the client