Plan, implement, test, and diagnose server-side Swift authentication and authorization for Vapor and Hummingbird services, including JWT, OAuth, OIDC, sessions, and password hashing.
Ships in server-side-swift. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add, modify, test, or diagnose server-side Swift authentication and authorization without confusing identity verification, permission checks, client-side credential storage, or transport security.
The practical decision is who the request represents, how that identity was verified, what the identity is allowed to do, where that policy is enforced, how credentials and secrets are stored, and which tests prove the boundary is secure.
401 Unauthorized, 403 Forbidden, token validation, session, cookie, password, middleware ordering, role, scope, tenant, or permission behavior.req.auth, a Hummingbird request context, a route-local value, or a domain service.Use repo-local Swift files, checked-out dependency sources, Dash MCP or Dash HTTP for installed Swift package DocC, and then official docs or source when Dash/local coverage is missing or stale. Check one of those source-specific paths before claiming auth behavior:
Use persistence, OpenAPI, observability, Docker, Fly.io, or deployment docs when auth depends on schema, API contracts, log redaction, secrets, TLS, cookies, or environment configuration.
Package.swiftFor Vapor:
req.auth as authenticated identity state, not as a generic dependency containerFor Hummingbird:
req.auth patterns into Hummingbird codehb-generated Lambda + API Gateway V2 projects, do not treat an openly reachable endpoint as protected just because it is deployed behind Lambda; use app or device evidence, API Gateway authorizers, signed tokens, or another explicit auth boundary before accepting sensitive requestsFor any framework:
Authorization answers whether an authenticated or anonymous actor may perform a specific action.
Model authorization in terms of concrete resources and operations:
Prefer explicit policy helpers or domain methods over repeated inline conditionals in route handlers. Return 401 when authentication is required and missing or invalid; return 403 when identity is known but not allowed.
Test cross-tenant and wrong-owner access whenever a service stores user-owned or organization-owned data.
Never store plaintext passwords. Use the framework's documented password hashing guidance or an existing repository-approved hashing package.
For tokens:
For JWT:
For sessions and cookies:
Use OAuth/OIDC when a provider owns user login or federated identity.
Before implementing:
Do not build a custom OAuth/OIDC flow from memory. Use provider docs, framework packages, and security review when external identity is in scope.
Choose tests that prove the boundary:
Avoid test shortcuts that bypass the exact middleware or policy under review unless the test is intentionally unit-level and another test covers integration.
Logs and traces may name the auth mechanism, route, actor type, and safe stable IDs. Do not log passwords, raw tokens, authorization headers, cookies, private keys, full JWTs, OAuth codes, refresh tokens, or session contents.
Use observability-tracing-workflow when auth diagnostics need correlation IDs, redaction, metrics, or traces.
Use fly-io-deployment-workflow, docker-workflow, or the repository's deployment workflow when auth secrets, key files, cookie settings, or provider config must reach production.
Use vapor-server-workflow for Vapor route grouping, middleware registration, controllers, commands, and framework config.
Use hummingbird-server-workflow for Hummingbird router, middleware, request context, and framework testing behavior.
Use persistence-workflow for user, token, role, permission, session, or audit-log schema and query design.
Use openapi-rpc-workflow when API contracts need auth schemes, security requirements, generated client behavior, or RPC metadata.
Use Apple-platform guidance for Keychain, Sign in with Apple client UI, local credential storage, or app-side token handling.
Return:
Auth shape: framework, credential types, identity model, middleware, route groups, policies, tokens, sessions, password storage, and secrets.Docs used: Vapor, Hummingbird, JWT, password, session, OAuth/OIDC, persistence, observability, or deployment docs consulted.Behavior: authentication flow, authorization checks, token/session lifecycle, errors, status codes, and redaction.Command path: exact build, test, migrate, run, secret, or HTTP commands run or recommended.Validation: tests, migration checks, manual HTTP checks, or deployment-secret verification.Handoffs: framework, persistence, OpenAPI/RPC, observability, Apple-platform, Docker, Fly.io, or security review follow-up when the task crosses this skill's boundary.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vapor-auth, hummingbird-auth, server-side-swift, jwt, oauth, authorization
/server-side-swift:auth-authorization-workflowfrom server-side-swift
npx claudepluginhub gaelic-ghost/socket --plugin server-side-swift13 skills in this plugin
/app-sync-workflowPlan, implement, test, and diagnose app sync contracts in server-side Swift services, including incremental change feeds, cursor or token semantics, idempotent writes, conflict handling, optimistic concurrency, deleted-record/tombstone behavior, background job handoffs, API-shape coordination, and Vapor or Hummingbird integration./docker-workflowAuthor and diagnose Dockerfile and OCI runtime definitions for server-side Swift while GitHub Actions exclusively builds, tests, publishes, and deploys Linux images./fly-io-deployment-workflowConfigure a GitHub Actions-only Fly.io deployment adapter for an exact prebuilt Swift service image, with protected environments, scoped credentials, health verification, and rollback./hummingbird-server-workflowPlan, build, run, test, and diagnose Hummingbird components under Services/ in the canonical product workspace. Hand fresh component creation and guidance alignment to the workspace service adapter./leaf-rendered-web-workflowPlan, implement, test, and diagnose Leaf-rendered Vapor sites and HTML email with typed contexts, layouts, partials, custom tags, escaping, accessibility, assets, caching, and rendering tests./observability-tracing-workflowPlan, implement, test, and diagnose observability for server-side Swift services, including Swift Logging, Swift Metrics, Swift Distributed Tracing, OpenTelemetry handoffs, request correlation, trace propagation, structured log fields, metric naming, health signals, privacy-safe diagnostics, and Vapor or Hummingbird integration.Other plugins' skills for the same job