From 99b3bbc91863d87c58015c18849cbd6e6138e77a Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Fri, 13 Oct 2023 12:22:22 +0100 Subject: [PATCH] Add CustomizeMFAInPostLoginAction tenant flag --- management/management.gen.go | 8 ++++++++ management/management.gen_test.go | 10 ++++++++++ management/tenant.go | 3 +++ 3 files changed, 21 insertions(+) diff --git a/management/management.gen.go b/management/management.gen.go index 43a2dee1..755ff677 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -9161,6 +9161,14 @@ func (t *TenantFlags) GetAllowLegacyTokenInfoEndpoint() bool { return *t.AllowLegacyTokenInfoEndpoint } +// GetCustomizeMFAInPostLoginAction returns the CustomizeMFAInPostLoginAction field if it's non-nil, zero value otherwise. +func (t *TenantFlags) GetCustomizeMFAInPostLoginAction() bool { + if t == nil || t.CustomizeMFAInPostLoginAction == nil { + return false + } + return *t.CustomizeMFAInPostLoginAction +} + // GetDashboardInsightsView returns the DashboardInsightsView field if it's non-nil, zero value otherwise. func (t *TenantFlags) GetDashboardInsightsView() bool { if t == nil || t.DashboardInsightsView == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index 7bb436a8..849602e9 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -11533,6 +11533,16 @@ func TestTenantFlags_GetAllowLegacyTokenInfoEndpoint(tt *testing.T) { t.GetAllowLegacyTokenInfoEndpoint() } +func TestTenantFlags_GetCustomizeMFAInPostLoginAction(tt *testing.T) { + var zeroValue bool + t := &TenantFlags{CustomizeMFAInPostLoginAction: &zeroValue} + t.GetCustomizeMFAInPostLoginAction() + t = &TenantFlags{} + t.GetCustomizeMFAInPostLoginAction() + t = nil + t.GetCustomizeMFAInPostLoginAction() +} + func TestTenantFlags_GetDashboardInsightsView(tt *testing.T) { var zeroValue bool t := &TenantFlags{DashboardInsightsView: &zeroValue} diff --git a/management/tenant.go b/management/tenant.go index 2eea1f53..85d73d49 100644 --- a/management/tenant.go +++ b/management/tenant.go @@ -250,6 +250,9 @@ type TenantFlags struct { // If `true`, all Clients will be required to use Pushed Authorization Requests. // This feature currently must be enabled for your tenant. RequirePushedAuthorizationRequests *bool `json:"require_pushed_authorization_requests,omitempty"` + + // If `true`, flexible factors will be enabled for MFA in the PostLogin action. + CustomizeMFAInPostLoginAction *bool `json:"customize_mfa_in_postlogin_action,omitempty"` } // TenantUniversalLogin holds universal login settings.