Skip to content
/ igv Public
forked from igvteam/igv

Commit

Permalink
Bumping up the CDK exposes a couple more methods that were missing fr…
Browse files Browse the repository at this point in the history
…om CDK 1.26.0, but apparently there are a few rough corners to fix still according to CDK tracking issue aws/aws-cdk#6765
  • Loading branch information
brainstorm committed Apr 8, 2020
1 parent 88df2ac commit df65dad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ dependencies {
[group: 'software.amazon.awssdk', name: 's3', version: '2.8.5'],

// Amazon server side dependencies (used to deploy the serverless Amazon IGV backend)
[group: 'software.amazon.awscdk', name: 'core', version: '1.26.0'],
[group: 'software.amazon.awscdk', name: 'cognito', version: '1.26.0'],
[group: 'software.amazon.awscdk', name: 's3', version: '1.26.0'],
[group: 'software.amazon.awscdk', name: 'core', version: '1.31.0'],
[group: 'software.amazon.awscdk', name: 'cognito', version: '1.31.0'],
[group: 'software.amazon.awscdk', name: 's3', version: '1.31.0'],

)

Expand Down
15 changes: 9 additions & 6 deletions src/main/java/org/umccr/awscdk/IGVAmazonCognitoStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
import software.amazon.awscdk.core.Stack;
import software.amazon.awscdk.core.StackProps;

import software.amazon.awscdk.services.cognito.UserPool;
import software.amazon.awscdk.services.cognito.CfnUserPoolIdentityProvider;
import software.amazon.awscdk.services.cognito.UserPoolClient;
import software.amazon.awscdk.services.cognito.CfnIdentityPool;
import software.amazon.awscdk.services.cognito.CfnUserPoolDomain;
import software.amazon.awscdk.services.cognito.*;
import software.amazon.awscdk.services.cognito.CfnUserPoolProps;
import software.amazon.awscdk.services.s3.Bucket;
import software.amazon.awssdk.services.s3.model.MFADelete;

import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -65,11 +63,14 @@ public IGVAmazonCognitoStack(final Construct parent, final String id, final Stac

final UserPool userPool = UserPool.Builder.create(this, "IGV User Pool")
.selfSignUpEnabled(false)
.mfa(Mfa.OFF)
.build();


final UserPoolClient userPoolClient = UserPoolClient.Builder.create(this, "IGV User Pool Client")
.userPool(userPool)
.userPoolClientName("IGV User Pool Client")
.generateSecret(true)
.generateSecret(true).enabledAuthFlows()
.build();


Expand All @@ -78,6 +79,8 @@ public IGVAmazonCognitoStack(final Construct parent, final String id, final Stac
userPoolID = userPool.getUserPoolId();
userPoolARN = userPool.getUserPoolArn();


final CfnUserPoolProps cfnUserPoolProps = CfnUserPoolProps.
final CfnUserPoolDomain cfnUserPoolDomain = CfnUserPoolDomain.Builder.create(this, "IGV User Pool Domain")
.domain(userPoolDomain)
.userPoolId(userPoolID)
Expand Down

0 comments on commit df65dad

Please sign in to comment.