From 7361eb9519f44a331dbf557e776fd585aae64985 Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Mon, 25 Mar 2024 22:38:01 +0900 Subject: [PATCH] fix: readme --- packages/aws-cdk-lib/aws-cognito/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/aws-cdk-lib/aws-cognito/README.md b/packages/aws-cdk-lib/aws-cognito/README.md index d0f71425b9baf..ae8a2fecdf84a 100644 --- a/packages/aws-cdk-lib/aws-cognito/README.md +++ b/packages/aws-cdk-lib/aws-cognito/README.md @@ -605,18 +605,20 @@ const userpool = new cognito.UserPool(this, 'Pool'); // specify the metadata as a file content new cognito.UserPoolIdentityProviderSaml(stack, 'userpoolIdpFile', { - userPool: pool, - metadata: UserPoolIdentityProviderSamlMetadata.file('my-file-contents'), + userPool: userpool, + metadata: cognito.UserPoolIdentityProviderSamlMetadata.file('my-file-contents'), // Whether to require encrypted SAML assertions from IdP encryptedResponses: true, // The signing algorithm for the SAML requests requestSigningAlgorithm: cognito.SigningAlgorithm.RSA_SHA256, + // Enable IdP initiated SAML auth flow + idpInitiated: true, }); // specify the metadata as a URL new cognito.UserPoolIdentityProviderSaml(stack, 'userpoolidpUrl', { - userPool: pool, - metadata: UserPoolIdentityProviderSamlMetadata.url('https://my-metadata-url.com'), + userPool: userpool, + metadata: cognito.UserPoolIdentityProviderSamlMetadata.url('https://my-metadata-url.com'), }); ```