SigningAlgorithm Enum
Signing algorithms for SAML requests.
| Source | aws-cognito/lib/user-pool-idps/saml.ts |
|---|---|
| Type last changed |
Example
ts
const userpool = new cognito.UserPool(this, 'Pool');
// specify the metadata as a file content
new cognito.UserPoolIdentityProviderSaml(this, 'userpoolIdpFile', {
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(this, 'userpoolidpUrl', {
userPool: userpool,
metadata: cognito.UserPoolIdentityProviderSamlMetadata.url('https://my-metadata-url.com'),
});
python
userpool = cognito.UserPool(self, "Pool")
# specify the metadata as a file content
cognito.UserPoolIdentityProviderSaml(self, "userpoolIdpFile",
user_pool=userpool,
metadata=cognito.UserPoolIdentityProviderSamlMetadata.file("my-file-contents"),
# Whether to require encrypted SAML assertions from IdP
encrypted_responses=True,
# The signing algorithm for the SAML requests
request_signing_algorithm=cognito.SigningAlgorithm.RSA_SHA256,
# Enable IdP initiated SAML auth flow
idp_initiated=True
)
# specify the metadata as a URL
cognito.UserPoolIdentityProviderSaml(self, "userpoolidpUrl",
user_pool=userpool,
metadata=cognito.UserPoolIdentityProviderSamlMetadata.url("https://my-metadata-url.com")
)
java
UserPool userpool = new UserPool(this, "Pool");
// specify the metadata as a file content
// specify the metadata as a file content
UserPoolIdentityProviderSaml.Builder.create(this, "userpoolIdpFile")
.userPool(userpool)
.metadata(UserPoolIdentityProviderSamlMetadata.file("my-file-contents"))
// Whether to require encrypted SAML assertions from IdP
.encryptedResponses(true)
// The signing algorithm for the SAML requests
.requestSigningAlgorithm(SigningAlgorithm.RSA_SHA256)
// Enable IdP initiated SAML auth flow
.idpInitiated(true)
.build();
// specify the metadata as a URL
// specify the metadata as a URL
UserPoolIdentityProviderSaml.Builder.create(this, "userpoolidpUrl")
.userPool(userpool)
.metadata(UserPoolIdentityProviderSamlMetadata.url("https://my-metadata-url.com"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var userpool = new UserPool(this, "Pool");
// specify the metadata as a file content
// specify the metadata as a file content
new UserPoolIdentityProviderSaml(this, "userpoolIdpFile", new UserPoolIdentityProviderSamlProps {
UserPool = userpool,
Metadata = UserPoolIdentityProviderSamlMetadata.File("my-file-contents"),
// Whether to require encrypted SAML assertions from IdP
EncryptedResponses = true,
// The signing algorithm for the SAML requests
RequestSigningAlgorithm = SigningAlgorithm.RSA_SHA256,
// Enable IdP initiated SAML auth flow
IdpInitiated = true
});
// specify the metadata as a URL
// specify the metadata as a URL
new UserPoolIdentityProviderSaml(this, "userpoolidpUrl", new UserPoolIdentityProviderSamlProps {
UserPool = userpool,
Metadata = UserPoolIdentityProviderSamlMetadata.Url("https://my-metadata-url.com")
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
userpool := cognito.NewUserPool(this, jsii.String("Pool"))
// specify the metadata as a file content
// specify the metadata as a file content
cognito.NewUserPoolIdentityProviderSaml(this, jsii.String("userpoolIdpFile"), &UserPoolIdentityProviderSamlProps{
UserPool: userpool,
Metadata: cognito.UserPoolIdentityProviderSamlMetadata_File(jsii.String("my-file-contents")),
// Whether to require encrypted SAML assertions from IdP
EncryptedResponses: jsii.Boolean(true),
// The signing algorithm for the SAML requests
RequestSigningAlgorithm: cognito.SigningAlgorithm_RSA_SHA256,
// Enable IdP initiated SAML auth flow
IdpInitiated: jsii.Boolean(true),
})
// specify the metadata as a URL
// specify the metadata as a URL
cognito.NewUserPoolIdentityProviderSaml(this, jsii.String("userpoolidpUrl"), &UserPoolIdentityProviderSamlProps{
UserPool: userpool,
Metadata: cognito.UserPoolIdentityProviderSamlMetadata_Url(jsii.String("https://my-metadata-url.com")),
})
Members
| Member | Description |
|---|---|
RSA_SHA256 | RSA with SHA-256. |
Referenced by
UserPoolIdentityProviderSamlProps.requestSigningAlgorithmrequest_signing_algorithmrequestSigningAlgorithmRequestSigningAlgorithmRequestSigningAlgorithm