From 8f7b213334337d0b0ac1491273a3ba406e7c802e Mon Sep 17 00:00:00 2001 From: Nicolas Lopes Date: Tue, 24 Sep 2024 09:41:17 -0300 Subject: [PATCH] feat(samlConnection): add disable_additional_identifiers field --- saml_connection.go | 43 ++++++++++++++++++++-------------------- samlconnection/client.go | 25 ++++++++++++----------- 2 files changed, 35 insertions(+), 33 deletions(-) diff --git a/saml_connection.go b/saml_connection.go index d51654fa..aa1f12ef 100644 --- a/saml_connection.go +++ b/saml_connection.go @@ -2,27 +2,28 @@ package clerk type SAMLConnection struct { APIResource - ID string `json:"id"` - Object string `json:"object"` - Name string `json:"name"` - Domain string `json:"domain"` - IdpEntityID *string `json:"idp_entity_id"` - IdpSsoURL *string `json:"idp_sso_url"` - IdpCertificate *string `json:"idp_certificate"` - IdpMetadataURL *string `json:"idp_metadata_url"` - IdpMetadata *string `json:"idp_metadata"` - AcsURL string `json:"acs_url"` - SPEntityID string `json:"sp_entity_id"` - SPMetadataURL string `json:"sp_metadata_url"` - AttributeMapping SAMLConnectionAttributeMapping `json:"attribute_mapping"` - Active bool `json:"active"` - Provider string `json:"provider"` - UserCount int64 `json:"user_count"` - SyncUserAttributes bool `json:"sync_user_attributes"` - AllowSubdomains bool `json:"allow_subdomains"` - AllowIdpInitiated bool `json:"allow_idp_initiated"` - CreatedAt int64 `json:"created_at"` - UpdatedAt int64 `json:"updated_at"` + ID string `json:"id"` + Object string `json:"object"` + Name string `json:"name"` + Domain string `json:"domain"` + IdpEntityID *string `json:"idp_entity_id"` + IdpSsoURL *string `json:"idp_sso_url"` + IdpCertificate *string `json:"idp_certificate"` + IdpMetadataURL *string `json:"idp_metadata_url"` + IdpMetadata *string `json:"idp_metadata"` + AcsURL string `json:"acs_url"` + SPEntityID string `json:"sp_entity_id"` + SPMetadataURL string `json:"sp_metadata_url"` + AttributeMapping SAMLConnectionAttributeMapping `json:"attribute_mapping"` + Active bool `json:"active"` + Provider string `json:"provider"` + UserCount int64 `json:"user_count"` + SyncUserAttributes bool `json:"sync_user_attributes"` + AllowSubdomains bool `json:"allow_subdomains"` + AllowIdpInitiated bool `json:"allow_idp_initiated"` + DisableAdditionalIdentifications bool `json:"disable_additional_identifications"` + CreatedAt int64 `json:"created_at"` + UpdatedAt int64 `json:"updated_at"` } type SAMLConnectionAttributeMapping struct { diff --git a/samlconnection/client.go b/samlconnection/client.go index 3801841a..d9b410f2 100644 --- a/samlconnection/client.go +++ b/samlconnection/client.go @@ -67,18 +67,19 @@ func (c *Client) Get(ctx context.Context, id string) (*clerk.SAMLConnection, err type UpdateParams struct { clerk.APIParams - Name *string `json:"name,omitempty"` - Domain *string `json:"domain,omitempty"` - IdpEntityID *string `json:"idp_entity_id,omitempty"` - IdpSsoURL *string `json:"idp_sso_url,omitempty"` - IdpCertificate *string `json:"idp_certificate,omitempty"` - IdpMetadataURL *string `json:"idp_metadata_url,omitempty"` - IdpMetadata *string `json:"idp_metadata,omitempty"` - AttributeMapping *AttributeMappingParams `json:"attribute_mapping,omitempty"` - Active *bool `json:"active,omitempty"` - SyncUserAttributes *bool `json:"sync_user_attributes,omitempty"` - AllowSubdomains *bool `json:"allow_subdomains,omitempty"` - AllowIdpInitiated *bool `json:"allow_idp_initiated,omitempty"` + Name *string `json:"name,omitempty"` + Domain *string `json:"domain,omitempty"` + IdpEntityID *string `json:"idp_entity_id,omitempty"` + IdpSsoURL *string `json:"idp_sso_url,omitempty"` + IdpCertificate *string `json:"idp_certificate,omitempty"` + IdpMetadataURL *string `json:"idp_metadata_url,omitempty"` + IdpMetadata *string `json:"idp_metadata,omitempty"` + AttributeMapping *AttributeMappingParams `json:"attribute_mapping,omitempty"` + Active *bool `json:"active,omitempty"` + SyncUserAttributes *bool `json:"sync_user_attributes,omitempty"` + AllowSubdomains *bool `json:"allow_subdomains,omitempty"` + AllowIdpInitiated *bool `json:"allow_idp_initiated,omitempty"` + DisableAdditionalIdentifications *bool `json:"disable_additional_identifications,omitempty"` } // Update updates the SAML Connection specified by id.