From 166f4421c779f1ff62256fcbbc0f6cea2c4a169b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Vinicius=20Gon=C3=A7alves=20Cunha?= Date: Wed, 24 May 2023 10:36:58 -0300 Subject: [PATCH] fix: fix RealmRepresentation (#422) --- models.go | 230 +++++++++++++++++++++++++++--------------------------- 1 file changed, 116 insertions(+), 114 deletions(-) diff --git a/models.go b/models.go index 4ec83fc7..070d8a54 100644 --- a/models.go +++ b/models.go @@ -720,120 +720,122 @@ type RolesRepresentation struct { // RealmRepresentation represents a realm type RealmRepresentation struct { - AccessCodeLifespan *int `json:"accessCodeLifespan,omitempty"` - AccessCodeLifespanLogin *int `json:"accessCodeLifespanLogin,omitempty"` - AccessCodeLifespanUserAction *int `json:"accessCodeLifespanUserAction,omitempty"` - AccessTokenLifespan *int `json:"accessTokenLifespan,omitempty"` - AccessTokenLifespanForImplicitFlow *int `json:"accessTokenLifespanForImplicitFlow,omitempty"` - AccountTheme *string `json:"accountTheme,omitempty"` - ActionTokenGeneratedByAdminLifespan *int `json:"actionTokenGeneratedByAdminLifespan,omitempty"` - ActionTokenGeneratedByUserLifespan *int `json:"actionTokenGeneratedByUserLifespan,omitempty"` - AdminEventsDetailsEnabled *bool `json:"adminEventsDetailsEnabled,omitempty"` - AdminEventsEnabled *bool `json:"adminEventsEnabled,omitempty"` - AdminTheme *string `json:"adminTheme,omitempty"` - Attributes *map[string]string `json:"attributes,omitempty"` - AuthenticationFlows *[]interface{} `json:"authenticationFlows,omitempty"` - AuthenticatorConfig *[]interface{} `json:"authenticatorConfig,omitempty"` - BrowserFlow *string `json:"browserFlow,omitempty"` - BrowserSecurityHeaders *map[string]string `json:"browserSecurityHeaders,omitempty"` - BruteForceProtected *bool `json:"bruteForceProtected,omitempty"` - ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty"` - ClientScopeMappings *map[string]string `json:"clientScopeMappings,omitempty"` - ClientScopes *[]ClientScope `json:"clientScopes,omitempty"` - Clients *[]Client `json:"clients,omitempty"` - Components interface{} `json:"components,omitempty"` - DefaultDefaultClientScopes *[]string `json:"defaultDefaultClientScopes,omitempty"` - DefaultGroups *[]string `json:"defaultGroups,omitempty"` - DefaultLocale *string `json:"defaultLocale,omitempty"` - DefaultOptionalClientScopes *[]string `json:"defaultOptionalClientScopes,omitempty"` - DefaultRole *Role `json:"defaultRole,omitempty"` - DefaultRoles *[]string `json:"defaultRoles,omitempty"` - DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty"` - DirectGrantFlow *string `json:"directGrantFlow,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - DisplayNameHTML *string `json:"displayNameHtml,omitempty"` - DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty"` - DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty"` - EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty"` - EmailTheme *string `json:"emailTheme,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - EnabledEventTypes *[]string `json:"enabledEventTypes,omitempty"` - EventsEnabled *bool `json:"eventsEnabled,omitempty"` - EventsExpiration *int64 `json:"eventsExpiration,omitempty"` - EventsListeners *[]string `json:"eventsListeners,omitempty"` - FailureFactor *int `json:"failureFactor,omitempty"` - FederatedUsers *[]interface{} `json:"federatedUsers,omitempty"` - Groups *[]interface{} `json:"groups,omitempty"` - ID *string `json:"id,omitempty"` - IdentityProviderMappers *[]interface{} `json:"identityProviderMappers,omitempty"` - IdentityProviders *[]interface{} `json:"identityProviders,omitempty"` - InternationalizationEnabled *bool `json:"internationalizationEnabled,omitempty"` - KeycloakVersion *string `json:"keycloakVersion,omitempty"` - LoginTheme *string `json:"loginTheme,omitempty"` - LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty"` - MaxDeltaTimeSeconds *int `json:"maxDeltaTimeSeconds,omitempty"` - MaxFailureWaitSeconds *int `json:"maxFailureWaitSeconds,omitempty"` - MinimumQuickLoginWaitSeconds *int `json:"minimumQuickLoginWaitSeconds,omitempty"` - NotBefore *int `json:"notBefore,omitempty"` - OfflineSessionIdleTimeout *int `json:"offlineSessionIdleTimeout,omitempty"` - OfflineSessionMaxLifespan *int `json:"offlineSessionMaxLifespan,omitempty"` - OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty"` - OtpPolicyAlgorithm *string `json:"otpPolicyAlgorithm,omitempty"` - OtpPolicyDigits *int `json:"otpPolicyDigits,omitempty"` - OtpPolicyInitialCounter *int `json:"otpPolicyInitialCounter,omitempty"` - OtpPolicyLookAheadWindow *int `json:"otpPolicyLookAheadWindow,omitempty"` - OtpPolicyPeriod *int `json:"otpPolicyPeriod,omitempty"` - OtpPolicyType *string `json:"otpPolicyType,omitempty"` - OtpSupportedApplications *[]string `json:"otpSupportedApplications,omitempty"` - PasswordPolicy *string `json:"passwordPolicy,omitempty"` - PermanentLockout *bool `json:"permanentLockout,omitempty"` - ProtocolMappers *[]interface{} `json:"protocolMappers,omitempty"` - QuickLoginCheckMilliSeconds *int64 `json:"quickLoginCheckMilliSeconds,omitempty"` - Realm *string `json:"realm,omitempty"` - RefreshTokenMaxReuse *int `json:"refreshTokenMaxReuse,omitempty"` - RegistrationAllowed *bool `json:"registrationAllowed,omitempty"` - RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty"` - RegistrationFlow *string `json:"registrationFlow,omitempty"` - RememberMe *bool `json:"rememberMe,omitempty"` - RequiredActions *[]interface{} `json:"requiredActions,omitempty"` - ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty"` - ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty"` - RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty"` - Roles *RolesRepresentation `json:"roles,omitempty"` - ScopeMappings *[]interface{} `json:"scopeMappings,omitempty"` - SMTPServer *map[string]string `json:"smtpServer,omitempty"` - SslRequired *string `json:"sslRequired,omitempty"` - SsoSessionIdleTimeout *int `json:"ssoSessionIdleTimeout,omitempty"` - SsoSessionIdleTimeoutRememberMe *int `json:"ssoSessionIdleTimeoutRememberMe,omitempty"` - SsoSessionMaxLifespan *int `json:"ssoSessionMaxLifespan,omitempty"` - SsoSessionMaxLifespanRememberMe *int `json:"ssoSessionMaxLifespanRememberMe,omitempty"` - SupportedLocales *[]string `json:"supportedLocales,omitempty"` - UserFederationMappers *[]interface{} `json:"userFederationMappers,omitempty"` - UserFederationProviders *[]interface{} `json:"userFederationProviders,omitempty"` - UserManagedAccessAllowed *bool `json:"userManagedAccessAllowed,omitempty"` - Users *[]User `json:"users,omitempty"` - VerifyEmail *bool `json:"verifyEmail,omitempty"` - WaitIncrementSeconds *int `json:"waitIncrementSeconds,omitempty"` - WebAuthnPolicyAcceptableAaguids *[]string `json:"webAuthnPolicyAcceptableAaguids,omitempty"` - WebAuthnPolicyAttestationConveyancePreference *string `json:"webAuthnPolicyAttestationConveyancePreference,omitempty"` - WebAuthnPolicyAuthenticatorAttachment *string `json:"webAuthnPolicyAuthenticatorAttachment,omitempty"` - WebAuthnPolicyAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyAvoidSameAuthenticatorRegister,omitempty"` - WebAuthnPolicyCreateTimeout *int `json:"webAuthnPolicyCreateTimeout,omitempty"` - WebAuthnPolicyPasswordlessAcceptableAaguids *[]string `json:"webAuthnPolicyPasswordlessAcceptableAaguids,omitempty"` - WebAuthnPolicyPasswordlessAttestationConveyancePreference *string `json:"webAuthnPolicyPasswordlessAttestationConveyancePreference,omitempty"` - WebAuthnPolicyPasswordlessAuthenticatorAttachment *string `json:"webAuthnPolicyPasswordlessAuthenticatorAttachment,omitempty"` - WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister,omitempty"` - WebAuthnPolicyPasswordlessCreateTimeout *int `json:"webAuthnPolicyPasswordlessCreateTimeout,omitempty"` - WebAuthnPolicyPasswordlessRequireResidentKey *string `json:"webAuthnPolicyPasswordlessRequireResidentKey,omitempty"` - WebAuthnPolicyPasswordlessRpEntityName *string `json:"webAuthnPolicyPasswordlessRpEntityName,omitempty"` - WebAuthnPolicyPasswordlessRpID *string `json:"webAuthnPolicyPasswordlessRpId,omitempty"` - WebAuthnPolicyPasswordlessSignatureAlgorithms *[]string `json:"webAuthnPolicyPasswordlessSignatureAlgorithms,omitempty"` - WebAuthnPolicyPasswordlessUserVerificationRequirement *string `json:"webAuthnPolicyPasswordlessUserVerificationRequirement,omitempty"` - WebAuthnPolicyRequireResidentKey *string `json:"webAuthnPolicyRequireResidentKey,omitempty"` - WebAuthnPolicyRpEntityName *string `json:"webAuthnPolicyRpEntityName,omitempty"` - WebAuthnPolicyRpID *string `json:"webAuthnPolicyRpId,omitempty"` - WebAuthnPolicySignatureAlgorithms *[]string `json:"webAuthnPolicySignatureAlgorithms,omitempty"` - WebAuthnPolicyUserVerificationRequirement *string `json:"webAuthnPolicyUserVerificationRequirement,omitempty"` + AccessCodeLifespan *int `json:"accessCodeLifespan,omitempty"` + AccessCodeLifespanLogin *int `json:"accessCodeLifespanLogin,omitempty"` + AccessCodeLifespanUserAction *int `json:"accessCodeLifespanUserAction,omitempty"` + AccessTokenLifespan *int `json:"accessTokenLifespan,omitempty"` + AccessTokenLifespanForImplicitFlow *int `json:"accessTokenLifespanForImplicitFlow,omitempty"` + AccountTheme *string `json:"accountTheme,omitempty"` + ActionTokenGeneratedByAdminLifespan *int `json:"actionTokenGeneratedByAdminLifespan,omitempty"` + ActionTokenGeneratedByUserLifespan *int `json:"actionTokenGeneratedByUserLifespan,omitempty"` + AdminEventsDetailsEnabled *bool `json:"adminEventsDetailsEnabled,omitempty"` + AdminEventsEnabled *bool `json:"adminEventsEnabled,omitempty"` + AdminTheme *string `json:"adminTheme,omitempty"` + Attributes *map[string]string `json:"attributes,omitempty"` + AuthenticationFlows *[]interface{} `json:"authenticationFlows,omitempty"` + AuthenticatorConfig *[]interface{} `json:"authenticatorConfig,omitempty"` + BrowserFlow *string `json:"browserFlow,omitempty"` + BrowserSecurityHeaders *map[string]string `json:"browserSecurityHeaders,omitempty"` + BruteForceProtected *bool `json:"bruteForceProtected,omitempty"` + ClientAuthenticationFlow *string `json:"clientAuthenticationFlow,omitempty"` + ClientPolicies *map[string][]interface{} `json:"clientPolicies,omitempty"` + ClientProfiles *map[string][]interface{} `json:"clientProfiles,omitempty"` + ClientScopeMappings *map[string][]interface{} `json:"clientScopeMappings,omitempty"` + ClientScopes *[]ClientScope `json:"clientScopes,omitempty"` + Clients *[]Client `json:"clients,omitempty"` + Components interface{} `json:"components,omitempty"` + DefaultDefaultClientScopes *[]string `json:"defaultDefaultClientScopes,omitempty"` + DefaultGroups *[]string `json:"defaultGroups,omitempty"` + DefaultLocale *string `json:"defaultLocale,omitempty"` + DefaultOptionalClientScopes *[]string `json:"defaultOptionalClientScopes,omitempty"` + DefaultRole *Role `json:"defaultRole,omitempty"` + DefaultRoles *[]string `json:"defaultRoles,omitempty"` + DefaultSignatureAlgorithm *string `json:"defaultSignatureAlgorithm,omitempty"` + DirectGrantFlow *string `json:"directGrantFlow,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + DisplayNameHTML *string `json:"displayNameHtml,omitempty"` + DockerAuthenticationFlow *string `json:"dockerAuthenticationFlow,omitempty"` + DuplicateEmailsAllowed *bool `json:"duplicateEmailsAllowed,omitempty"` + EditUsernameAllowed *bool `json:"editUsernameAllowed,omitempty"` + EmailTheme *string `json:"emailTheme,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EnabledEventTypes *[]string `json:"enabledEventTypes,omitempty"` + EventsEnabled *bool `json:"eventsEnabled,omitempty"` + EventsExpiration *int64 `json:"eventsExpiration,omitempty"` + EventsListeners *[]string `json:"eventsListeners,omitempty"` + FailureFactor *int `json:"failureFactor,omitempty"` + FederatedUsers *[]interface{} `json:"federatedUsers,omitempty"` + Groups *[]interface{} `json:"groups,omitempty"` + ID *string `json:"id,omitempty"` + IdentityProviderMappers *[]interface{} `json:"identityProviderMappers,omitempty"` + IdentityProviders *[]interface{} `json:"identityProviders,omitempty"` + InternationalizationEnabled *bool `json:"internationalizationEnabled,omitempty"` + KeycloakVersion *string `json:"keycloakVersion,omitempty"` + LoginTheme *string `json:"loginTheme,omitempty"` + LoginWithEmailAllowed *bool `json:"loginWithEmailAllowed,omitempty"` + MaxDeltaTimeSeconds *int `json:"maxDeltaTimeSeconds,omitempty"` + MaxFailureWaitSeconds *int `json:"maxFailureWaitSeconds,omitempty"` + MinimumQuickLoginWaitSeconds *int `json:"minimumQuickLoginWaitSeconds,omitempty"` + NotBefore *int `json:"notBefore,omitempty"` + OfflineSessionIdleTimeout *int `json:"offlineSessionIdleTimeout,omitempty"` + OfflineSessionMaxLifespan *int `json:"offlineSessionMaxLifespan,omitempty"` + OfflineSessionMaxLifespanEnabled *bool `json:"offlineSessionMaxLifespanEnabled,omitempty"` + OtpPolicyAlgorithm *string `json:"otpPolicyAlgorithm,omitempty"` + OtpPolicyDigits *int `json:"otpPolicyDigits,omitempty"` + OtpPolicyInitialCounter *int `json:"otpPolicyInitialCounter,omitempty"` + OtpPolicyLookAheadWindow *int `json:"otpPolicyLookAheadWindow,omitempty"` + OtpPolicyPeriod *int `json:"otpPolicyPeriod,omitempty"` + OtpPolicyType *string `json:"otpPolicyType,omitempty"` + OtpSupportedApplications *[]string `json:"otpSupportedApplications,omitempty"` + PasswordPolicy *string `json:"passwordPolicy,omitempty"` + PermanentLockout *bool `json:"permanentLockout,omitempty"` + ProtocolMappers *[]interface{} `json:"protocolMappers,omitempty"` + QuickLoginCheckMilliSeconds *int64 `json:"quickLoginCheckMilliSeconds,omitempty"` + Realm *string `json:"realm,omitempty"` + RefreshTokenMaxReuse *int `json:"refreshTokenMaxReuse,omitempty"` + RegistrationAllowed *bool `json:"registrationAllowed,omitempty"` + RegistrationEmailAsUsername *bool `json:"registrationEmailAsUsername,omitempty"` + RegistrationFlow *string `json:"registrationFlow,omitempty"` + RememberMe *bool `json:"rememberMe,omitempty"` + RequiredActions *[]interface{} `json:"requiredActions,omitempty"` + ResetCredentialsFlow *string `json:"resetCredentialsFlow,omitempty"` + ResetPasswordAllowed *bool `json:"resetPasswordAllowed,omitempty"` + RevokeRefreshToken *bool `json:"revokeRefreshToken,omitempty"` + Roles *RolesRepresentation `json:"roles,omitempty"` + ScopeMappings *[]interface{} `json:"scopeMappings,omitempty"` + SMTPServer *map[string]string `json:"smtpServer,omitempty"` + SslRequired *string `json:"sslRequired,omitempty"` + SsoSessionIdleTimeout *int `json:"ssoSessionIdleTimeout,omitempty"` + SsoSessionIdleTimeoutRememberMe *int `json:"ssoSessionIdleTimeoutRememberMe,omitempty"` + SsoSessionMaxLifespan *int `json:"ssoSessionMaxLifespan,omitempty"` + SsoSessionMaxLifespanRememberMe *int `json:"ssoSessionMaxLifespanRememberMe,omitempty"` + SupportedLocales *[]string `json:"supportedLocales,omitempty"` + UserFederationMappers *[]interface{} `json:"userFederationMappers,omitempty"` + UserFederationProviders *[]interface{} `json:"userFederationProviders,omitempty"` + UserManagedAccessAllowed *bool `json:"userManagedAccessAllowed,omitempty"` + Users *[]User `json:"users,omitempty"` + VerifyEmail *bool `json:"verifyEmail,omitempty"` + WaitIncrementSeconds *int `json:"waitIncrementSeconds,omitempty"` + WebAuthnPolicyAcceptableAaguids *[]string `json:"webAuthnPolicyAcceptableAaguids,omitempty"` + WebAuthnPolicyAttestationConveyancePreference *string `json:"webAuthnPolicyAttestationConveyancePreference,omitempty"` + WebAuthnPolicyAuthenticatorAttachment *string `json:"webAuthnPolicyAuthenticatorAttachment,omitempty"` + WebAuthnPolicyAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyAvoidSameAuthenticatorRegister,omitempty"` + WebAuthnPolicyCreateTimeout *int `json:"webAuthnPolicyCreateTimeout,omitempty"` + WebAuthnPolicyPasswordlessAcceptableAaguids *[]string `json:"webAuthnPolicyPasswordlessAcceptableAaguids,omitempty"` + WebAuthnPolicyPasswordlessAttestationConveyancePreference *string `json:"webAuthnPolicyPasswordlessAttestationConveyancePreference,omitempty"` + WebAuthnPolicyPasswordlessAuthenticatorAttachment *string `json:"webAuthnPolicyPasswordlessAuthenticatorAttachment,omitempty"` + WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister *bool `json:"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister,omitempty"` + WebAuthnPolicyPasswordlessCreateTimeout *int `json:"webAuthnPolicyPasswordlessCreateTimeout,omitempty"` + WebAuthnPolicyPasswordlessRequireResidentKey *string `json:"webAuthnPolicyPasswordlessRequireResidentKey,omitempty"` + WebAuthnPolicyPasswordlessRpEntityName *string `json:"webAuthnPolicyPasswordlessRpEntityName,omitempty"` + WebAuthnPolicyPasswordlessRpID *string `json:"webAuthnPolicyPasswordlessRpId,omitempty"` + WebAuthnPolicyPasswordlessSignatureAlgorithms *[]string `json:"webAuthnPolicyPasswordlessSignatureAlgorithms,omitempty"` + WebAuthnPolicyPasswordlessUserVerificationRequirement *string `json:"webAuthnPolicyPasswordlessUserVerificationRequirement,omitempty"` + WebAuthnPolicyRequireResidentKey *string `json:"webAuthnPolicyRequireResidentKey,omitempty"` + WebAuthnPolicyRpEntityName *string `json:"webAuthnPolicyRpEntityName,omitempty"` + WebAuthnPolicyRpID *string `json:"webAuthnPolicyRpId,omitempty"` + WebAuthnPolicySignatureAlgorithms *[]string `json:"webAuthnPolicySignatureAlgorithms,omitempty"` + WebAuthnPolicyUserVerificationRequirement *string `json:"webAuthnPolicyUserVerificationRequirement,omitempty"` } // AuthenticationFlowRepresentation represents an authentication flow of a realm