Last active
December 29, 2020 07:21
-
-
Save dhavaln/72a2332310313a528f53c7d7fbce1b73 to your computer and use it in GitHub Desktop.
Cognito Identity Pool client for Cognito User Pool Auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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