From ac6fc090b4ce771082a63f155899770f9f0c6f33 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Tue, 28 Jun 2022 14:40:55 -0400 Subject: [PATCH] Adding disable sign out field to samlp connections --- management/connection.go | 1 + management/management.gen.go | 8 ++++++++ management/management.gen_test.go | 10 ++++++++++ 3 files changed, 19 insertions(+) diff --git a/management/connection.go b/management/connection.go index 71d71b7a..31fd3a4c 100644 --- a/management/connection.go +++ b/management/connection.go @@ -762,6 +762,7 @@ type ConnectionOptionsSAML struct { DomainAliases []interface{} `json:"domain_aliases,omitempty"` SignInEndpoint *string `json:"signInEndpoint,omitempty"` SignOutEndpoint *string `json:"signOutEndpoint,omitempty"` + DisableSignOut *bool `json:"disableSignout,omitempty"` SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty"` DigestAglorithm *string `json:"digestAlgorithm,omitempty"` MetadataXML *string `json:"metadataXml,omitempty"` diff --git a/management/management.gen.go b/management/management.gen.go index 6a7ec8ba..35891b67 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -3007,6 +3007,14 @@ func (c *ConnectionOptionsSAML) GetDigestAglorithm() string { return *c.DigestAglorithm } +// GetDisableSignOut returns the DisableSignOut field if it's non-nil, zero value otherwise. +func (c *ConnectionOptionsSAML) GetDisableSignOut() bool { + if c == nil || c.DisableSignOut == nil { + return false + } + return *c.DisableSignOut +} + // GetEntityID returns the EntityID field if it's non-nil, zero value otherwise. func (c *ConnectionOptionsSAML) GetEntityID() string { if c == nil || c.EntityID == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index 93191420..9a5b361d 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -3807,6 +3807,16 @@ func TestConnectionOptionsSAML_GetDigestAglorithm(tt *testing.T) { c.GetDigestAglorithm() } +func TestConnectionOptionsSAML_GetDisableSignOut(tt *testing.T) { + var zeroValue bool + c := &ConnectionOptionsSAML{DisableSignOut: &zeroValue} + c.GetDisableSignOut() + c = &ConnectionOptionsSAML{} + c.GetDisableSignOut() + c = nil + c.GetDisableSignOut() +} + func TestConnectionOptionsSAML_GetEntityID(tt *testing.T) { var zeroValue string c := &ConnectionOptionsSAML{EntityID: &zeroValue}