File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/aws-cdk-lib/aws-cognito Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -604,19 +604,21 @@ Using SAML identity provider is possible to use SAML metadata file content or SA
604
604
const userpool = new cognito .UserPool (this , ' Pool' );
605
605
606
606
// specify the metadata as a file content
607
- new cognito .UserPoolIdentityProviderSaml (stack , ' userpoolIdpFile' , {
608
- userPool: pool ,
609
- metadata: UserPoolIdentityProviderSamlMetadata .file (' my-file-contents' ),
607
+ new cognito .UserPoolIdentityProviderSaml (this , ' userpoolIdpFile' , {
608
+ userPool: userpool ,
609
+ metadata: cognito . UserPoolIdentityProviderSamlMetadata .file (' my-file-contents' ),
610
610
// Whether to require encrypted SAML assertions from IdP
611
611
encryptedResponses: true ,
612
612
// The signing algorithm for the SAML requests
613
613
requestSigningAlgorithm: cognito .SigningAlgorithm .RSA_SHA256 ,
614
+ // Enable IdP initiated SAML auth flow
615
+ idpInitiated: true ,
614
616
});
615
617
616
618
// specify the metadata as a URL
617
- new cognito .UserPoolIdentityProviderSaml (stack , ' userpoolidpUrl' , {
618
- userPool: pool ,
619
- metadata: UserPoolIdentityProviderSamlMetadata .url (' https://my-metadata-url.com' ),
619
+ new cognito .UserPoolIdentityProviderSaml (this , ' userpoolidpUrl' , {
620
+ userPool: userpool ,
621
+ metadata: cognito . UserPoolIdentityProviderSamlMetadata .url (' https://my-metadata-url.com' ),
620
622
});
621
623
```
622
624
You can’t perform that action at this time.
0 commit comments