Identity
User pool, providers, sign-up, recovery, MFA, passkeys, and verification.
Browser-local planning aid · Source checked August 9, 2026
Choose the client, protected resource, sign-in method, and execution mode. Get an architecture path, prompt, safety gates, and tests—not generated infrastructure or an AWS change.
Recommended architecture
Use a user pool for sign-in and issue tokens to the SPA. The API validates the expected token and applies scopes plus application-specific authorization. No identity pool is required for this path.
Agent prompt
For Customer portal, inventory the current Cognito and API authorization state without changing it. Treat the browser SPA as a public client with no client secret. Plan managed login with authorization code and PKCE for the application's own backend API. Separate user-pool, authorizer, application-code, IAM, and agent-permission responsibilities. Show account, Region, resource scope, preserved fields, full-replacement operations, tests, rollback, and approval gates.
Nothing is sent to AWS. Do not paste credentials, tokens, client secrets, production user data, or unredacted account identifiers into this planner or an agent prompt.
Review by layer
User pool, providers, sign-up, recovery, MFA, passkeys, and verification.
Public or confidential type, redirect URLs, grant, scopes, and secret handling.
JWT authorizer, backend rules, identity pool, IAM role, and resource policy.
Read and write authority, account and Region scope, approvals, and secrets.
Diff, tests, denied paths, rollback, CloudTrail, logs, and human owner.
Official references: AWS aws-auth launch, Agent Toolkit quick start, and Amazon Cognito developer guide. Verify current commands, clients, Regions, feature plans, APIs, limits, prices, and IAM guidance.