Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Mar 25, 2024
1 parent 6bd08cf commit 7361eb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/aws-cdk-lib/aws-cognito/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
});
```

Expand Down

0 comments on commit 7361eb9

Please sign in to comment.