Skip to content

Commit

Permalink
fix: saml2_sign_request and saml2_force_authn cast type (#1452)
Browse files Browse the repository at this point in the history
* Fix saml2_sign_request cast type

* Fix saml2_force_authn cast type
  • Loading branch information
zzz4zzz authored Jan 10, 2023
1 parent 9362971 commit f8cecd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/saml_integration.go
Original file line number Diff line number Diff line change
@@ -184,7 +184,7 @@ func CreateSAMLIntegration(d *schema.ResourceData, meta interface{}) error {
}

if _, ok := d.GetOk("saml2_sign_request"); ok {
stmt.SetString(`SAML2_SIGN_REQUEST`, d.Get("saml2_sign_request").(string))
stmt.SetBool(`SAML2_SIGN_REQUEST`, d.Get("saml2_sign_request").(bool))
}

if _, ok := d.GetOk("saml2_requested_nameid_format"); ok {
@@ -196,7 +196,7 @@ func CreateSAMLIntegration(d *schema.ResourceData, meta interface{}) error {
}

if _, ok := d.GetOk("saml2_force_authn"); ok {
stmt.SetString(`SAML2_FORCE_AUTHN`, d.Get("saml2_force_authn").(string))
stmt.SetBool(`SAML2_FORCE_AUTHN`, d.Get("saml2_force_authn").(bool))
}

if _, ok := d.GetOk("saml2_snowflake_issuer_url"); ok {

0 comments on commit f8cecd7

Please sign in to comment.