70 %
Chris Biscardi

What is a Cognito UserPoolClient?

A Cognito UserPoolClient is an AWS construct that you can use to create an application that can call signup, login, etc for your user pool. You would use this to be able to sign up from an Android app, a serverside application, or a webapp.

Here is an example Serverless Framework UserPoolClient resource:

yaml
UserPoolClient:
Type: "AWS::Cognito::UserPoolClient"
Properties:
ClientName: my-user-pool-client
UserPoolId:
Ref: UserPool
ExplicitAuthFlows:
- ADMIN_NO_SRP_AUTH
GenerateSecret: false
AllowedOAuthFlows:
- implicit
AllowedOAuthScopes:
- phone
- email
- openid
SupportedIdentityProviders:
- COGNITO
CallbackURLs:
- http://localhost:3000/callback
DefaultRedirectURI: http://localhost:3000/callback