Amazon Cognito Identity logo

Amazon Cognito Identity

Amazon Cognito Identity

UpOpen Sourcecloudby Amazon Web Services62· JavaScript· MIT

AWS Cognito Identity Pools API issues temporary AWS credentials to frontend apps — identity federation, guest users, direct AWS resource access.

Visit site ↗Source ↗Health checked 9h ago
Use it when

Frontend obtains AWS short-lived credentials without backend proxy

Watch for

Easy to confuse with Cognito User Pools (User Pools is user store, Identity Pools issues credentials)

First check

CreateIdentityPool to create a pool, configure authenticated and guest IAM roles. Frontend calls GetCredentialsForIdentity for temp access keys.

Auth
CORS
No
HTTPS
Yes
Signup
?
Latency
19 ms
Protocol
REST
Pricing
Stars
62

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 19ms

GitHub activity

62JavaScriptMIT17 open issuesLast commit 110d ago
01

About this API

Cognito Identity Pools addresses a specific problem: frontend apps want direct access to AWS resources (e.g. S3 upload, DynamoDB write), but can't embed long-term AWS access keys in app code (would leak). Identity Pool acts as an "identity exchange" middleware — user logs in via Cognito User Pools / Facebook / Google to get a token; frontend exchanges that token for temporary AWS credentials (15 minutes to 12 hours) and calls AWS services. Different IAM roles for "authenticated" vs "guest" users enable fine-grained control (e.g. authenticated users can upload to user-{id} path, guests can only read public/). Distinct from User Pools: User Pools is "user identity store" (registration, login, attributes); Identity Pools is "AWS credential issuer". Typically used together.

02

What you can build

  • 1Mobile app directly accesses S3/DynamoDB without backend
  • 2Assign read-only permissions to guest users
  • 3Federate Facebook/Google login to AWS credentials
  • 4Manage authenticated vs guest user permissions
03

Strengths & limitations

Strengths

  • Frontend obtains AWS short-lived credentials without backend proxy
  • Multiple identity providers (Cognito User Pools, Facebook, Google, SAML)
  • Fine-grained IAM policy control

Limitations

  • Easy to confuse with Cognito User Pools (User Pools is user store, Identity Pools issues credentials)
  • Permission design is complex (must write IAM trust policy)
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://github.com/mermade/aws2openapi/<endpoint>
05

Getting started

CreateIdentityPool to create a pool, configure authenticated and guest IAM roles. Frontend calls GetCredentialsForIdentity for temp access keys.

06

FAQ

Identity Pools vs. User Pools?+

User Pools manages user identity (account store); Identity Pools exchanges identity for temporary AWS credentials. A project typically uses both.

How do I implement guest users?+

Configure Identity Pool with "allow unauthenticated identities" — frontend gets credentials without a token (using guest role permissions).

07

Technical details

CORS: NoHTTPS: YesSignup: ?Open source: Yes
Auth type
unknown
Pricing
unknown
Protocols
REST
SDKs
javascript, swift, kotlin, java, python
Response time
19 ms
Last health check
5/12/2026, 7:36:33 AM
08

Tags

09

More from Amazon Web Services