Skip to main content

SAML Integration

You can provide configuration to Snowflake Object Lifecycle Engine for the following operation with SAML integration:

  • Manage the Lifecycle of new and existing SAML Integrations
  • Manage Grants of SAML Integrations

Usage

note

We have introduced SOLE for Data Products as a new framework for SOLE to help you easily build an ecosystem of data products. The major difference is in how you define Snowflake objects in the configuration file. Rather than having a grouped collection of objects, SOLE for Data Products goes for modular, self-describing, and explicit object definition.
Learn more about SOLE for Data Products, currently available as a public preview.

We have also introduced Data products as an extra layer on top of the data product platform capabilities making managing data products easier than ever. Learn more about Data Products, currently available as a private preview.

saml_integrations:
<saml_integrations-name>:
<configuration-key>: <value>
grants:
<privilege>:
- <role-name>
- <role-name>

Supported parameters

The engine supports the parameters listed below.

Configuration KeyRequired/OptionalData Type and ValuesDescription
saml2_issuerRequiredStringContains the IdP EntityID / Issuer.
Caution: The saml2_issuer URLs must be distinct across SAML2 integrations.
saml2_providerRequiredString: ADFS, Custom, OKTADescribes the IdP
saml2_sso_urlRequiredStringContains the IdP SSO URL, where you should be redirected by Snowflake (the service provider) with a SAML AuthnRequest message
saml2_x509_certRequiredStringThe Base64 encoded IdP signing certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers
Caution: Expired certificates will return an error.
See the Snowflake doc
deletedOptionalBoolean: True enables deletion prevention, False does nothingSpecifies what objects are allowed to be deleted
enabledOptionalBooleanSpecifies whether this security integration is enabled or disabled.
Caution: There can only be one enabled SAML2 integration.
environmentOptionalStringSpecifies the environment in which the SAML Integration is managed. Regex can be provided as well.
manage_modeOptionalString: all (default), noneConfigures what properties to manage for the SAML Integration.
See Changing Manage Mode before changing the value.
namespacingOptionalString: both (default), none, prefix, suffixSpecifies whether a prefix or a suffix or both are to be added to SAML integration name
saml2_enable_sp_initiatedOptionalBooleanIndicates whether the Log in With button is displayed on the login page. TRUE displays the button while FALSE does not.
saml2_force_authnOptionalBooleanIndicates whether you, during the initial authentication flow, are forced to authenticate again to access Snowflake. You must set the initial value to FALSE then you can update this as needed.
Info: TRUE forces a reauthentication to access Snowflake, even if a valid session with the identity provider exists, while FALSE doesn't. When set to TRUE, Snowflake sets the ForceAuthn SAML parameter to TRUE in the outgoing request to the identity provider.
saml2_post_logout_redirect_urlOptionalStringSpecifies the endpoint to which Snowflake redirects you after clicking the Log Out button in the classic Snowflake web interface.
Info: Snowflake terminates the session upon redirecting to the specified endpoint.
saml2_requested_nameid_formatOptionalString: See Possible ValuesAllows Snowflake to set from the IdP an expectation of your identifying attribute (i.e. SAML Subject) in the SAML assertion to ensure a valid authentication to Snowflake
saml2_sign_requestOptionalBooleanIndicates whether SAML requests are signed. TRUE allows SAML requests to be signed while FALSE doesn't. You must set the initial value to FALSE then you can update this as needed.
saml2_snowflake_acs_urlOptionalStringContains the Snowflake Assertion Consumer Service URL to which the IdP will send back its SAML authentication response. This property will be set in the SAML authentication request generated by Snowflake when initiating a SAML SSO operation with the ID.
Caution: If this value is incorrect, Snowflake returns an error indicating the values to use https://<account_locator>.<region>.snowflakecomputing.com/fed/login (default).
saml2_snowflake_issuer_urlOptionalStringContains the EntityID / Issuer for the Snowflake service provider.
Caution: If this value is incorrect, Snowflake returns an error indicating the values to use https://<account_locator>.<region>.snowflakecomputing.com (default).
saml2_snowflake_x509_certOptionalStringContains the Base64 encoded self-signed certificate generated by Snowflake to use with encrypting SAML assertions and signed SAML requests.
Info: You must have at least one of the features encrypted SAML assertions or signed SAML responses enabled in your Snowflake account to access the certificate value.
saml2_sp_initiated_login_page_labelOptionalStringContains the label to display after the Log In With button on the login page

Possible values for saml2_requested_nameid_format

  • urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress (default)
  • urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
  • urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName
  • urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName
  • urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos
  • urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
  • urn:oasis:names:tc:SAML:2.0:nameid-format:transient

Supported SAML integration grants to roles

Following are the access privileges you can grant to roles in the SAML integration definition:

  • ALL PRIVILEGES
  • USAGE
  • USE_ANY_ROLE
  • OWNERSHIP
ALL PRIVILEGES handling

When you define ALL PRIVILEGES in the SOLE configuration file, you grant all the privileges listed above to roles on this object except OWNERSHIP. However, the management of ALL PRIVILEGES in SOLE differs from its handling in Snowflake. See Handling ALL PRIVILEGES in SOLE for more information.

Examples

saml_integrations:
SAML_INTEGRATION:
grants:
USAGE:
- ROLE_1
saml2_provider: "CUSTOM"
saml2_enable_sp_initiated: true
saml2_issuer: "test_issuer"
saml2_post_logout_redirect_url: "https://webtest.com/logout/"
saml2_sign_request: false
saml2_sso_url: "https://testsamlissuer.com"
saml2_x509_cert: "MIIGBTCCA+2gAwIBAgIUduabE5e6e9KCogqex8yQS/WYXXgwDQYJKoZIhvcNAQELBQAwgZExCzAJBgNVBAYTAklOMRYwFAYDVQQIDA1VdHRhciBQcmFkZXNoMQ4wDAYDVQQHDAVOb2lkYTEQMA4GA1UECgwHRGF0b3BpYzEQMA4GA1UECwwHRGF0YU9wczESMBAGA1UEAwwJamF5a2lzaGFuMSIwIAYJKoZIhvcNAQkBFhNqa2lzaGFuQGRhdG9waWMuY29tMB4XDTI0MDExNTA4NTU1MFoXDTM0MDExMjA4NTU1MFowgZExCzAJBgNVBAYTAklOMRYwFAYDVQQIDA1VdHRhciBQcmFkZXNoMQ4wDAYDVQQHDAVOb2lkYTEQMA4GA1UECgwHRGF0b3BpYzEQMA4GA1UECwwHRGF0YU9wczESMBAGA1UEAwwJamF5a2lzaGFuMSIwIAYJKoZIhvcNAQkBFhNqa2lzaGFuQGRhdG9waWMuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA39Uq/4aRofqwH7gxMIQDY2q+9C4lBgjb5LgtppKiyDsBjL5csh+0Vb21PYswDvVONbXdhUNTx8h68tsd+WsNxdsfvvECahur0yp24gMnp23eC7uzii+g5b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