ipa-stack-cognito

Deploy an AWS Cognito User Pool with OAuth 2.0 Hosted UI endpoints.

1|1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws-samples/sample-innovation-patterns --skill ipa-stack-cognito
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ipa-stack-cognito
Source: https://github.com/aws-samples/sample-innovation-patterns/tree/main/.claude/skills/ipa-stack-cognito
Command: npx skills add https://github.com/aws-samples/sample-innovation-patterns --skill ipa-stack-cognito

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of setting up secure, production-ready authentication infrastructure by provisioning an AWS Cognito User Pool and the Hosted UI components your application needs to start issuing and validating OIDC tokens.

Core Features & Use Cases

  • Cognito User Pool + App Client: Creates and configures a Cognito User Pool plus an OAuth 2.0 App Client for Authorization Code (code grant) flows and JWT-compatible OIDC endpoints.
  • Hosted UI Custom Domain + Managed Login Branding: Establishes a custom domain for the Hosted UI and applies managed login branding so users authenticate via your branded experience.
  • Auth Outputs for Downstream Wiring: Exports issuer, end-session, discovery, user pool/client identifiers, and domain information so API Gateway authorizers, Lambda JWT validation, and frontend OIDC configuration can be wired consistently across stacks.

Quick Start

Use the ipa-stack-cognito skill to deploy a Cognito stack that outputs OIDC issuer and Hosted UI URLs ready for your frontend and API authentication setup.

Frequently Asked Questions about ipa-stack-cognito

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up an AWS Cognito User Pool with OAuth 2.0 Hosted UI?

You can deploy a Cognito User Pool with OAuth 2.0 Hosted UI by provisioning a CloudFormation template that configures an App Client for authorization-code flows and a custom domain. This provides JWT-compatible OIDC endpoints ready for application authentication.

What is needed to configure OIDC discovery and JWT validation for a serverless app?

Configuring OIDC discovery and JWT validation requires a Cognito User Pool that exports issuer, discovery, and user pool identifiers. These outputs allow API Gateway authorizers and Lambda functions to consistently validate tokens issued by the Hosted UI.

Can I use a custom domain for Cognito Hosted UI managed login branding?

Yes, you can establish a custom domain for the Cognito Hosted UI and apply managed login branding. This ensures users authenticate via your branded experience while using standard OAuth 2.0 authorization-code flows.

Does this Cognito deployment support authorization-code flows for full-stack builds?

Yes, the deployment creates an OAuth 2.0 App Client specifically configured for authorization-code flows. It applies to full-stack serverless builds requiring OIDC discovery and exports user pool, client, issuer, and discovery outputs for downstream wiring.

How do I parameterize namespace and environment when deploying a Cognito stack?

You parameterize namespace and environment by defining input parameters in your CloudFormation template for the Cognito stack. The deployment validates callback and domain prefix inputs to enforce the specified security posture across different environments.

Why do I need to validate callback and domain prefix inputs in CloudFormation?

Validating callback and domain prefix inputs is necessary to enforce the specified security posture during Cognito deployment. It ensures the Hosted UI custom domain and OAuth 2.0 App Client are configured correctly for reliable OIDC token issuance.