Skip to content

Instantly share code, notes, and snippets.

@dhavaln
Created December 30, 2020 07:13
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/280347b628edfcca91be3f4b66b42448 to your computer and use it in GitHub Desktop.
Save dhavaln/280347b628edfcca91be3f4b66b42448 to your computer and use it in GitHub Desktop.
Cognito Identity Pool Client Config
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