Skip to content

Instantly share code, notes, and snippets.

@dhavaln
Last active December 29, 2020 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhavaln/72a2332310313a528f53c7d7fbce1b73 to your computer and use it in GitHub Desktop.
Save dhavaln/72a2332310313a528f53c7d7fbce1b73 to your computer and use it in GitHub Desktop.
Cognito Identity Pool client for Cognito User Pool Auth
Type: AWS::Cognito::UserPoolClient
Properties:
UserPoolId: !Ref cognitoUserPool
AllowedOAuthFlows:
- 'implicit'
AllowedOAuthFlowsUserPoolClient: true
AllowedOAuthScopes:
- 'openid'
- 'aws.cognito.signin.user.admin'
CallbackURLs:
- !Join ["", ["https://", !Ref s3DeploymentBucket, ".s3.", !Ref AWS::Region, ".amazonaws.com/index.html"]]
ClientName: ${self:custom.environment.normalWebClient}-${opt:stage}
DefaultRedirectURI: !Join ["", ["https://", !Ref s3DeploymentBucket, ".s3.", !Ref AWS::Region, ".amazonaws.com/index.html"]]
ExplicitAuthFlows:
- 'ALLOW_USER_PASSWORD_AUTH'
- 'ALLOW_USER_SRP_AUTH'
- 'ALLOW_REFRESH_TOKEN_AUTH'
GenerateSecret: false
LogoutURLs:
- !Join ["", ["https://", !Ref s3DeploymentBucket, ".s3.", !Ref AWS::Region, ".amazonaws.com/index.html"]]
PreventUserExistenceErrors: 'ENABLED'
SupportedIdentityProviders:
- 'COGNITO'
RefreshTokenValidity: 3650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment