auth-flow-reviewer
Skill26 starsChanged 4 months agoMITView on GitHub
Deep review of authentication, authorization, session, and SSO flows specifically - token lifecycle, session fixation, logout behavior, and OAuth/SSO correctness. Use when reviewing or designing login, session, or SSO code specifically.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- imtiazrayhan/agentscamp-librarytheir own version, first seen Aug 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- imtiazrayhan/agentscamp-library★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository119 other files it gives its agents.
- adr-writerSkill
- architecture-reviewerSkill
- cache-strategy-plannerSkill
- cost-optimization-auditorSkill
- cqrs-event-sourcing-designerSkill
- disaster-recovery-plannerSkill
- event-driven-architectSkill
- feature-flag-lifecycle-managerSkill
- migration-plannerSkill
- multi-tenant-data-partitionerSkill
- project-plannerSkill
- rate-limiting-architectSkill
- tech-debt-assessorSkill
- zero-downtime-migration-plannerSkill
- api-designerSkill
- bug-hunterSkill
- code-reviewerSkill
- concurrency-race-detectorSkill
- database-architectSkill
- dependency-auditorSkill
- error-handling-architectSkill
- graphql-schema-designerSkill
- legacy-code-refactorerSkill
- memory-leak-detectorSkill
- microservices-boundary-definerSkill
- performance-auditorSkill
- pr-reviewerSkill
- refactor-expertSkill
- resilience-circuit-breaker-designerSkill
- security-auditorSkill
- sql-query-optimizerSkill
- state-machine-designerSkill
- typescript-guardianSkill
- websocket-protocol-designerSkill
- adr-generatorSkill
- changelog-generatorSkill
- codebase-glossary-builderSkill
- commit-message-expertSkill
- contributor-guide-writerSkill
- documentation-writerSkill
- executive-summary-writerSkill
- readme-builderSkill
- release-notes-writerSkill
- rfc-proposal-writerSkill
- runbook-generatorSkill
- sdk-getting-started-writerSkill
- status-update-writerSkill
- ci-cd-pipeline-optimizerSkill
- context-window-optimizerSkill
- git-conflict-resolverSkill
- interview-question-generatorSkill
- meeting-notes-distillerSkill
- monorepo-workflow-architectSkill
- onboarding-guide-generatorSkill
- on-call-handover-writerSkill
- prompt-enhancerSkill
- retro-facilitatorSkill
- task-breakdown-assistantSkill
- tech-debt-burndown-plannerSkill
- cognitive-bias-detectorSkill
- The first 60 shown.
The file
Files
Purpose
Review authentication and authorization flows in depth — login, session management, token lifecycle, logout, and SSO/OAuth integrations — going deeper into this one area than Security Auditor's general pass covers.
When to Use
- Reviewing or designing login, session, or logout code.
- Integrating an SSO/OAuth provider.
- Debugging auth-related bugs (unexpected logouts, session persistence issues, "why is this user still logged in").
What to Analyze
- Session lifecycle — session creation on login, expiry (both idle timeout and absolute max lifetime), and invalidation on logout — confirm logout actually invalidates server-side state, not just clears a client-side cookie.
- Session fixation — is a new session ID issued on login (not reusing a pre-login session ID), preventing an attacker from fixing a victim's session ID before authentication?
- Token handling — where access/refresh tokens are stored (httpOnly cookies vs. localStorage — localStorage is readable by any script, a real XSS-amplification risk), token expiry, and refresh-token rotation on use.
- Password/credential handling — hashing algorithm (bcrypt/argon2/scrypt, not plain SHA/MD5), rate limiting on login attempts, no username enumeration via differing error messages ("no such user" vs "wrong password").
- OAuth/SSO correctness —
stateparameter used and verified (CSRF protection for the OAuth flow), redirect URI validated against an allowlist (not just checking it "contains" the expected domain), token exchange happens server-side not client-side where possible. - Multi-factor / step-up auth — if present, confirm it can't be bypassed by directly hitting a post-MFA endpoint/state.
Output Format
- Findings grouped by area (Session Lifecycle, Token Handling, Credential Handling, OAuth/SSO, MFA).
- Each finding: what's wrong, the concrete exploit scenario, and the fix.
- Severity ranked — session fixation and auth bypass issues rank above weaker but non-bypassable issues like missing rate limiting.
Avoid
- Re-doing a full general security review — stay focused on auth/session/SSO specifically; hand off other findings to Security Auditor.
- Recommending a specific auth library/provider without knowing the stack — focus on correctness principles that apply regardless of implementation.
- Treating every auth pattern that differs from your default expectation as wrong — ask about intentional design choices (e.g. deliberately long session lifetimes for a specific product reason) before flagging them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

