Skip to content

Reusable AWS Cognito reference for user pools, identity pools, OAuth tokens, and federated sign-in.

CCM score
57 of 100
skills.sh installs
191
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers user pools, identity pools, token types and lifetimes, and sign-up, confirmation, and sign-in flows
  • Includes aws cognito-idp and aws cognito-identity CLI commands plus Python boto3 examples for SRP auth and AWS credential exchange
  • Enforces a secret-hash requirement on client calls and recommends strong password policies, MFA, and short token lifetimes
  • Designed for developers wiring authentication into web or mobile apps that need AWS resource access or social sign-in

Install

$ npx -y skills add itsmostafa/aws-agent-skills --skill cognito -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

AWS Cognito

Amazon Cognito provides authentication, authorization, and user management for web and mobile applications. Users can sign in directly or through federated identity providers.

Table of Contents

Core Concepts

User Pools

User directory for sign-up and sign-in. Provides:

  • User registration and authentication
  • OAuth 2.0 / OpenID Connect tokens
  • MFA and password policies
  • Customizable UI and flows

Identity Pools (Federated Identities)

Provide temporary AWS credentials to access AWS services. Users can be:

  • Cognito User Pool users
  • Social identity (Google, Facebook, Apple)
  • SAML/OIDC enterprise identity
  • Anonymous guests

Tokens

TokenPurposeLifetime
ID TokenUser identity claims1 hour
Access TokenAPI authorization1 hour
Refresh TokenGet new ID/Access tokens30 days (configurable)

Common Patterns

Create User Pool

AWS CLI:

Details

Repository
github.com/itsmostafa/aws-agent-skills
Categories
Backend & APIs, Security
License
MIT
First seen
Jun 3, 2026

Questions

What does the Cognito skill cover for AWS?

The cognito skill covers AWS Cognito user authentication and authorization, including setting up user pools, configuring identity pools, implementing OAuth flows, managing user attributes, and integrating social identity providers. It gives the agent working patterns for sign-up, sign-in, token refresh and temporary AWS credentials.

How do I install the Cognito skill?

Run npx -y skills add itsmostafa/aws-agent-skills --skill cognito -y in your project. Once installed, the agent can help you create user pools, app clients and identity pools with Cognito.

Which other skills are in the Backend and APIs category with Cognito?

Cognito sits in the Backend and APIs category alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Cognito is the AWS option for user authentication among these, covering pools, OAuth and federated sign-in.

Does the Cognito skill cover AWS Cognito token lifetimes and troubleshooting?

Yes, the SKILL.md covers the ID, access and refresh token types with their lifetimes, plus a troubleshooting section for users who cannot sign in and for failed token validation. It also lists best practices such as enabling MFA and keeping client secrets out of frontend code.

More from itsmostafa/aws-agent-skills

All 18

Similar to Cognito

More Backend & APIs