Cognito
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
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-idpandaws cognito-identityCLI 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 -yInstalls 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
| Token | Purpose | Lifetime |
|---|---|---|
| ID Token | User identity claims | 1 hour |
| Access Token | API authorization | 1 hour |
| Refresh Token | Get new ID/Access tokens | 30 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 18Similar to Cognito
More Backend & APIsoauth-implementationaj-geddes/useful-ai-prompts561 installsSecure OAuth 2.0, OIDC, and JWT authentication guide with reference implementations for Node.js, Python, and Java.
oauth2-authenticationmanutej/luxor-claude-marketplace604 installsComprehensive OAuth2 and OpenID Connect guide covering grant flows, PKCE, token handling, and security practices.
secrets-manageritsmostafa/aws-agent-skills161 installsAWS Secrets Manager reference for storing, retrieving, versioning, and auto-rotating credentials and API keys.
iamitsmostafa/aws-agent-skills150 installsAWS IAM guidance for building policies, cross-account roles, service roles, and permission troubleshooting.
auth-implementation-patternswshobson/agents21.7K installsCatalog-style summary of authentication and authorization patterns covering JWT, OAuth2, sessions, and RBAC.