forge-auth: Authentication
Engine: Hybrid — Forge + wshobson, Supabase, Google
Purpose
Inspect identity proofing, credentials, sessions, recovery, federation, and reauthentication controls.
Deterministic runtime composition
Before loading any provider procedure, run:
Resolve ../../runtime/cli/src/composition-entry.js relative to this SKILL.md, then run:
node "<resolved-absolute-runner-path>" auth compose --workflow audit --root "<repository-root>" --dry-run --json
Add one repeatable --request <provider-or-source> flag for each explicit user request. Add
--condition <task-condition> or --risk-surface <surface> only for a task fact you directly
proved; never infer one from generic wording. The command above is the default for this
audit-oriented module; for implementation use --workflow build, and for a fix, retest, or
release gate use --workflow fix, verify, or ship respectively. Read the JSON response,
keep the Forge contract at index zero, and resolve paths against the absolute runtime_root
reported in that response. Read eager[].runtimePath when entering the module. The full
selected[] list is availability/provenance; load only deferred[].runtimePath when the task
reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported
suppression and context budget. If missing is non-empty, stop and report the installation as
damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin
cache or global installation; never assume they are inside the audited repository.
Resolve and read ../fullstack-forge/references/shared/module-contract.md (applicability,
execution, mutation, verification, completion) and
../fullstack-forge/references/shared/evidence-rules.md (statuses, standards, tools, findings via
../fullstack-forge/references/PROTOCOL.md) relative to this module SKILL.md before reporting.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves authentication, when
the user explicitly names forge-auth, or when discovery proves an applicable boundary.
- Applications identifying users, services, or administrators
When not to activate
- Truly anonymous static content with no privileged operation
Automated support
Relevant discovery inputs are:
- authentication provider and middleware
- session configuration
- account routes
Deterministic support, bounded evidence only:
Agent inspection procedure
- Trace registration, login, and logout end to end, recording where credentials are validated, hashed, and stored.
- Inspect session issuance: how identifiers are generated, what the cookie or token carries, its flags, lifetime, and revocation path.
- Trace password reset and recovery flows for token entropy, expiry, single-use enforcement, and account-enumeration behavior.
- Check brute-force protections, MFA enrollment and verification, and reauthentication for sensitive actions.
- Verify session-fixation defense (rotation at login), remember-me behavior, and device/session management against the session store.
Manual inspection requirements:
- Review provider tenant settings and recovery support procedures
- Test session revocation and high-risk reauthentication
Stack-specific guidance:
- Validate framework middleware order and provider defaults explicitly
Evidence to collect
Standards used as criteria:
- OWASP ASVS 5.0
- OWASP Authentication Cheat Sheet
- NIST SP 800-63B
Common production failures
- Trace sign-up, sign-in, logout, recovery, verification, MFA, reauthentication, and account linking
- Inspect password hashing, session rotation, expiry, cookie flags, CSRF, token audience/issuer/algorithm, enumeration, and brute-force defenses
- Verify state-changing endpoints derive identity from trusted server context
Missing-control checks
Each item needs direct evidence or one reasoned status.
- Registration
- Login
- Password hashing
- Password policies
- Password reset
- Email verification
- MFA
- Sessions
- Expiration
- Revocation
- Secure cookies
- Refresh-token rotation
- OAuth configuration
- OIDC configuration
- Account enumeration
- Brute-force protections
- Rate limits
- Remember-me behavior
- Logout
- Device and session management
- Sensitive-action reauthentication
- Session fixation
- Token leakage
- Recovery flows
- Maintained password, session, and identity libraries rather than custom cryptography
Commands and tools
- Run
forge auth audit --json or fullstack-forge auth audit --json when
an explicit audit is requested and the CLI is installed. Normal feature work does not require it.
Safe fixes
- Harden cookie flags and redact authentication errors
- Add missing token claim validation supported by current configuration
Approval-required changes
- Replacing authentication, changing identity linkage, or rotating credentials
Verification
- Run positive and negative flows with expired, replayed, tampered, and cross-environment credentials
- Confirm logout and revocation invalidate durable sessions
Completion contract
Follow fullstack-forge/references/shared/completion.md and the limitations below.
Known limitations
- Hosted-provider settings remain NOT_VERIFIED without exported configuration
1---2name: forge-auth-33description: Inspect identity proofing, credentials, sessions, recovery, federation, and reauthentication controls.4---56# forge-auth: Authentication78Engine: Hybrid — Forge + wshobson, Supabase, Google910## Purpose1112Inspect identity proofing, credentials, sessions, recovery, federation, and reauthentication controls.131415## Deterministic runtime composition1617Before loading any provider procedure, run:1819Resolve `../../runtime/cli/src/composition-entry.js` relative to this `SKILL.md`, then run:2021`node "<resolved-absolute-runner-path>" auth compose --workflow audit --root "<repository-root>" --dry-run --json`2223Add one repeatable `--request <provider-or-source>` flag for each explicit user request. Add24`--condition <task-condition>` or `--risk-surface <surface>` only for a task fact you directly25proved; never infer one from generic wording. The command above is the default for this26audit-oriented module; for implementation use `--workflow build`, and for a fix, retest, or27release gate use `--workflow fix`, `verify`, or `ship` respectively. Read the JSON response,28keep the Forge contract at index zero, and resolve paths against the absolute `runtime_root`29reported in that response. Read `eager[].runtimePath` when entering the module. The full30`selected[]` list is availability/provenance; load only `deferred[].runtimePath` when the task31reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported32suppression and context budget. If `missing` is non-empty, stop and report the installation as33damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin34cache or global installation; never assume they are inside the audited repository.353637Resolve and read `../fullstack-forge/references/shared/module-contract.md` (applicability,38execution, mutation, verification, completion) and39`../fullstack-forge/references/shared/evidence-rules.md` (statuses, standards, tools, findings via40`../fullstack-forge/references/PROTOCOL.md`) relative to this module `SKILL.md` before reporting.4142Never hide failed checks or claim that an operation ran when it did not.4344## Automatic activation signals4546Activate when a request or direct repository evidence involves authentication, when47the user explicitly names `forge-auth`, or when discovery proves an applicable boundary.4849- Applications identifying users, services, or administrators5051## When not to activate5253- Truly anonymous static content with no privileged operation5455## Automated support5657Relevant discovery inputs are:5859- authentication provider and middleware60- session configuration61- account routes6263Deterministic support, bounded evidence only:6465- `inspect-auth-boundaries`6667## Agent inspection procedure68691. Trace registration, login, and logout end to end, recording where credentials are validated, hashed, and stored.702. Inspect session issuance: how identifiers are generated, what the cookie or token carries, its flags, lifetime, and revocation path.713. Trace password reset and recovery flows for token entropy, expiry, single-use enforcement, and account-enumeration behavior.724. Check brute-force protections, MFA enrollment and verification, and reauthentication for sensitive actions.735. Verify session-fixation defense (rotation at login), remember-me behavior, and device/session management against the session store.7475Manual inspection requirements:7677- Review provider tenant settings and recovery support procedures78- Test session revocation and high-risk reauthentication7980Stack-specific guidance:8182- Validate framework middleware order and provider defaults explicitly8384## Evidence to collect8586Standards used as criteria:8788- OWASP ASVS 5.089- OWASP Authentication Cheat Sheet90- NIST SP 800-63B9192## Common production failures9394- Trace sign-up, sign-in, logout, recovery, verification, MFA, reauthentication, and account linking95- Inspect password hashing, session rotation, expiry, cookie flags, CSRF, token audience/issuer/algorithm, enumeration, and brute-force defenses96- Verify state-changing endpoints derive identity from trusted server context9798## Missing-control checks99100Each item needs direct evidence or one reasoned status.101102- Registration103- Login104- Password hashing105- Password policies106- Password reset107- Email verification108- MFA109- Sessions110- Expiration111- Revocation112- Secure cookies113- Refresh-token rotation114- OAuth configuration115- OIDC configuration116- Account enumeration117- Brute-force protections118- Rate limits119- Remember-me behavior120- Logout121- Device and session management122- Sensitive-action reauthentication123- Session fixation124- Token leakage125- Recovery flows126- Maintained password, session, and identity libraries rather than custom cryptography127128## Commands and tools129130- Run `forge auth audit --json` or `fullstack-forge auth audit --json` when131 an explicit audit is requested and the CLI is installed. Normal feature work does not require it.132133## Safe fixes134135- Harden cookie flags and redact authentication errors136- Add missing token claim validation supported by current configuration137138## Approval-required changes139140- Replacing authentication, changing identity linkage, or rotating credentials141142## Verification143144- Run positive and negative flows with expired, replayed, tampered, and cross-environment credentials145- Confirm logout and revocation invalidate durable sessions146147## Completion contract148149Follow `fullstack-forge/references/shared/completion.md` and the limitations below.150151## Known limitations152153- Hosted-provider settings remain NOT_VERIFIED without exported configuration