diff --git a/management/client.go b/management/client.go index bc2d82e4..518bab07 100644 --- a/management/client.go +++ b/management/client.go @@ -110,6 +110,9 @@ type Client struct { // If `true` then the client will require Pushed Authorization Requests RequirePushedAuthorizationRequests *bool `json:"require_pushed_authorization_requests,omitempty"` + + // URLs that are valid to call back from Auth0 for OIDC backchannel logout. + OIDCBackchannelLogout *OIDCBackchannelLogout `json:"oidc_backchannel_logout,omitempty"` } // ClientJWTConfiguration is used to configure JWT settings for our Client. @@ -219,6 +222,11 @@ type PrivateKeyJWT struct { Credentials *[]Credential `json:"credentials,omitempty"` } +// OIDCBackchannelLogout defines the `oidc_backchannel_logout` settings for the client. +type OIDCBackchannelLogout struct { + BackChannelLogoutURLs *[]string `json:"backchannel_logout_urls,omitempty"` +} + // ClientList is a list of Clients. type ClientList struct { List diff --git a/management/management.gen.go b/management/management.gen.go index f1a15dce..0faac1a5 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -1163,6 +1163,14 @@ func (c *Client) GetNativeSocialLogin() *ClientNativeSocialLogin { return c.NativeSocialLogin } +// GetOIDCBackchannelLogout returns the OIDCBackchannelLogout field. +func (c *Client) GetOIDCBackchannelLogout() *OIDCBackchannelLogout { + if c == nil { + return nil + } + return c.OIDCBackchannelLogout +} + // GetOIDCConformant returns the OIDCConformant field if it's non-nil, zero value otherwise. func (c *Client) GetOIDCConformant() bool { if c == nil || c.OIDCConformant == nil { @@ -6266,6 +6274,19 @@ func (m *MultiFactorWebAuthnSettings) String() string { return Stringify(m) } +// GetBackChannelLogoutURLs returns the BackChannelLogoutURLs field if it's non-nil, zero value otherwise. +func (o *OIDCBackchannelLogout) GetBackChannelLogoutURLs() []string { + if o == nil || o.BackChannelLogoutURLs == nil { + return nil + } + return *o.BackChannelLogoutURLs +} + +// String returns a string representation of OIDCBackchannelLogout. +func (o *OIDCBackchannelLogout) String() string { + return Stringify(o) +} + // GetBranding returns the Branding field. func (o *Organization) GetBranding() *OrganizationBranding { if o == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index 059c7be4..88493876 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -1478,6 +1478,13 @@ func TestClient_GetNativeSocialLogin(tt *testing.T) { c.GetNativeSocialLogin() } +func TestClient_GetOIDCBackchannelLogout(tt *testing.T) { + c := &Client{} + c.GetOIDCBackchannelLogout() + c = nil + c.GetOIDCBackchannelLogout() +} + func TestClient_GetOIDCConformant(tt *testing.T) { var zeroValue bool c := &Client{OIDCConformant: &zeroValue} @@ -7970,6 +7977,24 @@ func TestMultiFactorWebAuthnSettings_String(t *testing.T) { } } +func TestOIDCBackchannelLogout_GetBackChannelLogoutURLs(tt *testing.T) { + var zeroValue []string + o := &OIDCBackchannelLogout{BackChannelLogoutURLs: &zeroValue} + o.GetBackChannelLogoutURLs() + o = &OIDCBackchannelLogout{} + o.GetBackChannelLogoutURLs() + o = nil + o.GetBackChannelLogoutURLs() +} + +func TestOIDCBackchannelLogout_String(t *testing.T) { + var rawJSON json.RawMessage + v := &OIDCBackchannelLogout{} + if err := json.Unmarshal([]byte(v.String()), &rawJSON); err != nil { + t.Errorf("failed to produce a valid json") + } +} + func TestOrganization_GetBranding(tt *testing.T) { o := &Organization{} o.GetBranding()