Versions in this module Expand all Collapse all v0 v0.0.2 Nov 25, 2021 v0.0.1 Jan 21, 2021 Changes in this version + const APIURL + const AccessToken + const EvenParams + const MsgErrCannotCreate + const MsgErrCannotMarshal + const MsgErrCannotObtain + const MsgErrCannotParse + const MsgErrCannotUnmarshal + const MsgErrExistingValue + const MsgErrInvalidParam + const MsgErrMissingParam + const MsgErrReadOnly + const MsgErrUnknownResponseStatusCode + const MsgErrUnkownHTTPContentType + const Response + const TokenMsg + const TokenProviderURL + type ActivationCodeRepresentation struct + Code *string + type AdminEventRepresentation struct + AuthDetails *AuthDetailsRepresentation + Error *string + OperationType *string + RealmID *string + Representation *string + ResourcePath *string + ResourceType *string + Time *int64 + type AttachementRepresentation struct + Content *string + ContentType *string + Filename *string + type AttributeKey string + type Attributes map[AttributeKey][]string + func (a Attributes) Get(key AttributeKey) []string + func (a Attributes) GetBool(key AttributeKey) (*bool, error) + func (a Attributes) GetDate(key AttributeKey, dateLayouts []string) *string + func (a Attributes) GetInt(key AttributeKey) (*int, error) + func (a Attributes) GetString(key AttributeKey) *string + func (a Attributes) GetTime(key AttributeKey, dateLayouts []string) (*time.Time, error) + func (a Attributes) Merge(others *Attributes) + func (a Attributes) Set(key AttributeKey, value []string) + func (a Attributes) SetBool(key AttributeKey, value bool) + func (a Attributes) SetBoolWhenNotNil(key AttributeKey, value *bool) + func (a Attributes) SetDate(key AttributeKey, value string, dateLayouts []string) + func (a Attributes) SetDateWhenNotNil(key AttributeKey, value *string, dateLayouts []string) + func (a Attributes) SetInt(key AttributeKey, value int) + func (a Attributes) SetIntWhenNotNil(key AttributeKey, value *int) + func (a Attributes) SetString(key AttributeKey, value string) + func (a Attributes) SetStringWhenNotNil(key AttributeKey, value *string) + func (a Attributes) SetTime(key AttributeKey, value time.Time, dateLayout string) + func (a Attributes) SetTimeWhenNotNil(key AttributeKey, value *time.Time, dateLayout string) + type AuthDetailsRepresentation struct + ClientID *string + IPAddress *string + RealmID *string + UserID *string + type AuthenticationExecutionExportRepresentation struct + Authenticator *string + AuthenticatorConfig *string + AuthenticatorFlow *bool + AutheticatorFlow *bool + FlowAlias *string + Priority *int32 + Requirement *string + UserSetupAllowed *bool + type AuthenticationExecutionInfoRepresentation struct + Alias *string + AuthenticationConfig *string + AuthenticationFlow *bool + Configurable *bool + DisplayName *string + FlowID *string + ID *string + Index *int32 + Level *int32 + ProviderID *string + Requirement *string + RequirementChoices *[]string + type AuthenticationExecutionRepresentation struct + Authenticator *string + AuthenticatorConfig *string + AuthenticatorFlow *bool + AutheticatorFlow *bool + FlowID *string + ID *string + ParentFlow *string + Priority *int32 + Requirement *string + type AuthenticationFlowRepresentation struct + Alias *string + AuthenticationExecutions *[]AuthenticationExecutionExportRepresentation + BuiltIn *bool + Description *string + ID *string + ProviderID *string + TopLevel *bool + type AuthenticatorConfigInfoRepresentation struct + HelpText *string + Name *string + Properties *[]ConfigPropertyRepresentation + ProviderID *string + type AuthenticatorConfigRepresentation struct + Alias *string + Config *map[string]interface{} + ID *string + type CertificateRepresentation struct + Certificate *string + Kid *string + PrivateKey *string + PublicKey *string + type Client struct + func NewClient(config Config) (*Client, error) + func (c *Client) AddClientRolesToUserRoleMapping(accessToken string, realmName, userID, clientID string, ...) error + func (c *Client) AddGroupToUser(accessToken string, realmName, userID, groupID string) error + func (c *Client) AssignClientRole(accessToken string, realmName string, groupID string, clientID string, ...) error + func (c *Client) ClearAllLoginFailures(accessToken string, realmName string) error + func (c *Client) ClearUserLoginFailures(accessToken string, realmName, userID string) error + func (c *Client) CopyExistingAuthenticationFlow(accessToken string, realmName, flowAlias, newName string) error + func (c *Client) CountUsers(accessToken string, realmName string) (int, error) + func (c *Client) CreateActivationCode(accessToken string, realmName string, userID string) (ActivationCodeRepresentation, error) + func (c *Client) CreateAuthenticationExecution(accessToken string, realmName string, ...) (string, error) + func (c *Client) CreateAuthenticationExecutionForFlow(accessToken string, realmName, flowAlias, provider string) (string, error) + func (c *Client) CreateAuthenticationFlow(accessToken string, realmName string, ...) error + func (c *Client) CreateClient(accessToken string, realmName string, clientRep ClientRepresentation) (string, error) + func (c *Client) CreateClientInitialAccess(accessToken string, realmName string, ...) (ClientInitialAccessPresentation, error) + func (c *Client) CreateClientRole(accessToken string, realmName, clientID string, role RoleRepresentation) (string, error) + func (c *Client) CreateComponent(accessToken string, realmName string, component ComponentRepresentation) (string, error) + func (c *Client) CreateFlowWithExecutionForExistingFlow(accessToken string, ...) (string, error) + func (c *Client) CreateGroup(accessToken string, reqRealmName string, group GroupRepresentation) (string, error) + func (c *Client) CreateRealm(accessToken string, realm RealmRepresentation) (string, error) + func (c *Client) CreateRecoveryCode(accessToken string, realmName string, userID string) (RecoveryCodeRepresentation, error) + func (c *Client) CreateUser(accessToken string, targetRealmName string, user UserRepresentation) (string, error) + func (c *Client) DeleteAuthenticationExecution(accessToken string, realmName, executionID string) error + func (c *Client) DeleteAuthenticationFlow(accessToken string, realmName, flowID string) error + func (c *Client) DeleteAuthenticatorConfig(accessToken string, realmName, configID string) error + func (c *Client) DeleteClientInitialAccess(accessToken string, realmName, accessID string) error + func (c *Client) DeleteClientRolesFromUserRoleMapping(accessToken string, realmName, userID, clientID string) error + func (c *Client) DeleteComponent(accessToken string, realmName, componentID string) error + func (c *Client) DeleteCredential(accessToken string, realmName string, userID string, credentialID string) error + func (c *Client) DeleteGroup(accessToken string, realmName string, groupID string) error + func (c *Client) DeleteGroupFromUser(accessToken string, realmName, userID, groupID string) error + func (c *Client) DeleteRealm(accessToken string, realmName string) error + func (c *Client) DeleteRequiredAction(accessToken string, realmName, actionAlias string) error + func (c *Client) DeleteUser(accessToken string, realmName, userID string) error + func (c *Client) ExecuteActionsEmail(accessToken string, realmName string, userID string, actions []string, ...) error + func (c *Client) ExportRealm(accessToken string, realmName string) (RealmRepresentation, error) + func (c *Client) GenerateCertificate(accessToken string, realmName, idClient, attr string) (CertificateRepresentation, error) + func (c *Client) GenerateKeyPairAndCertificate(accessToken string, realmName, idClient, attr string, ...) ([]byte, error) + func (c *Client) GetAttackDetectionStatus(accessToken string, realmName, userID string) (map[string]interface{}, error) + func (c *Client) GetAuthenticationExecutionForFlow(accessToken string, realmName, flowAlias string) (AuthenticationExecutionInfoRepresentation, error) + func (c *Client) GetAuthenticationFlow(accessToken string, realmName, flowID string) (AuthenticationFlowRepresentation, error) + func (c *Client) GetAuthenticationFlows(accessToken string, realmName string) ([]AuthenticationFlowRepresentation, error) + func (c *Client) GetAuthenticatorConfig(accessToken string, realmName, configID string) (AuthenticatorConfigRepresentation, error) + func (c *Client) GetAuthenticatorProviderConfig(accessToken string, realmName, providerID string) (AuthenticatorConfigInfoRepresentation, error) + func (c *Client) GetAuthenticatorProviders(accessToken string, realmName string) ([]map[string]interface{}, error) + func (c *Client) GetAvailableGroupClientRoles(accessToken string, realmName string, groupID string, clientID string) ([]RoleRepresentation, error) + func (c *Client) GetClient(accessToken string, realmName, idClient string) (ClientRepresentation, error) + func (c *Client) GetClientAuthenticatorProviders(accessToken string, realmName string) ([]map[string]interface{}, error) + func (c *Client) GetClientInitialAccess(accessToken string, realmName string) ([]ClientInitialAccessPresentation, error) + func (c *Client) GetClientMappers(accessToke string, realmName, idClient string) ([]ClientMapperRepresentation, error) + func (c *Client) GetClientRegistrationPolicy(accessToken string, realmName, configID string) ([]ComponentTypeRepresentation, error) + func (c *Client) GetClientRoleMappings(accessToken string, realmName, userID, clientID string) ([]RoleRepresentation, error) + func (c *Client) GetClientRoles(accessToken string, realmName, idClient string) ([]RoleRepresentation, error) + func (c *Client) GetClients(accessToken string, realmName string, paramKV ...string) ([]ClientRepresentation, error) + func (c *Client) GetComponent(accessToken string, realmName string, componentID string) ([]ComponentRepresentation, error) + func (c *Client) GetComponents(accessToken string, realmName string) ([]ComponentRepresentation, error) + func (c *Client) GetConfigDescriptionForClients(accessToken string, realmName string) (map[string]interface{}, error) + func (c *Client) GetCredentialTypes(accessToken string, realmName string) ([]string, error) + func (c *Client) GetCredentials(accessToken string, realmName string, userID string) ([]CredentialRepresentation, error) + func (c *Client) GetFormActionProviders(accessToken string, realmName string) ([]map[string]interface{}, error) + func (c *Client) GetFormProviders(accessToken string, realmName string) ([]map[string]interface{}, error) + func (c *Client) GetGroup(accessToken string, realmName string, groupID string) (GroupRepresentation, error) + func (c *Client) GetGroupClientRoles(accessToken string, realmName string, groupID string, clientID string) ([]RoleRepresentation, error) + func (c *Client) GetGroups(accessToken string, realmName string) ([]GroupRepresentation, error) + func (c *Client) GetGroupsOfUser(accessToken string, realmName, userID string) ([]GroupRepresentation, error) + func (c *Client) GetIdp(accessToken string, realmName string, idpAlias string) (IdentityProviderRepresentation, error) + func (c *Client) GetIdpMappers(accessToken string, realmName string, idpAlias string) ([]IdentityProviderMapperRepresentation, error) + func (c *Client) GetIdps(accessToken string, realmName string) ([]IdentityProviderRepresentation, error) + func (c *Client) GetKeyInfo(accessToken string, realmName, idClient, attr string) (CertificateRepresentation, error) + func (c *Client) GetKeyStore(accessToken string, realmName, idClient, attr string, ...) ([]byte, error) + func (c *Client) GetRealm(accessToken string, realmName string) (RealmRepresentation, error) + func (c *Client) GetRealmCredentialRegistrators(accessToken string, realmName string) ([]string, error) + func (c *Client) GetRealmLevelRoleMappings(accessToken string, realmName, userID string) ([]RoleRepresentation, error) + func (c *Client) GetRealms(accessToken string) ([]RealmRepresentation, error) + func (c *Client) GetRequiredAction(accessToken string, realmName, actionAlias string) (RequiredActionProviderRepresentation, error) + func (c *Client) GetRequiredActions(accessToken string, realmName string) ([]RequiredActionProviderRepresentation, error) + func (c *Client) GetRole(accessToken string, realmName string, roleID string) (RoleRepresentation, error) + func (c *Client) GetRoles(accessToken string, realmName string) ([]RoleRepresentation, error) + func (c *Client) GetSecret(accessToken string, realmName, idClient string) (CredentialRepresentation, error) + func (c *Client) GetToken(realm string, username string, password string) (string, error) + func (c *Client) GetUnregisteredRequiredActions(accessToken string, realmName string) ([]map[string]interface{}, error) + func (c *Client) GetUser(accessToken string, realmName, userID string) (UserRepresentation, error) + func (c *Client) GetUsers(accessToken string, targetRealmName string, paramKV ...string) ([]UserRepresentation, error) + func (c *Client) LinkShadowUser(accessToken string, reqRealmName string, userID string, provider string, ...) error + func (c *Client) LowerExecutionPriority(accessToken string, realmName, executionID string) error + func (c *Client) MoveAfter(accessToken string, realmName string, userID string, credentialID string, ...) error + func (c *Client) MoveToFirst(accessToken string, realmName string, userID string, credentialID string) error + func (c *Client) RaiseExecutionPriority(accessToken string, realmName, executionID string) error + func (c *Client) RegisterRequiredAction(accessToken string, realmName, providerID, name string) error + func (c *Client) RemoveClientRole(accessToken string, realmName string, groupID string, clientID string, ...) error + func (c *Client) ResetPassword(accessToken string, realmName, userID string, cred CredentialRepresentation) error + func (c *Client) SendReminderEmail(accessToken string, realmName string, userID string, paramKV ...string) error + func (c *Client) SendSMS(accessToken string, realmName string, smsRep SMSRepresentation) error + func (c *Client) SendSmsCode(accessToken string, realmName string, userID string) (SmsCodeRepresentation, error) + func (c *Client) UpdateAuthenticationExecution(accessToken string, realmName, executionID string, ...) error + func (c *Client) UpdateAuthenticationExecutionForFlow(accessToken string, realmName, flowAlias string, ...) error + func (c *Client) UpdateAuthenticatorConfig(accessToken string, realmName, configID string, ...) error + func (c *Client) UpdateClient(accessToken string, realmName, idClient string, clientRep ClientRepresentation) error + func (c *Client) UpdateComponent(accessToken string, realmName, componentID string, ...) error + func (c *Client) UpdateLabelCredential(accessToken string, realmName string, userID string, credentialID string, ...) error + func (c *Client) UpdateRealm(accessToken string, realmName string, realm RealmRepresentation) error + func (c *Client) UpdateRequiredAction(accessToken string, realmName, actionAlias string, ...) error + func (c *Client) UpdateUser(accessToken string, realmName, userID string, user UserRepresentation) error + func (c *Client) UploadCertificate(accessToken string, realmName, idClient, attr string, file []byte) (CertificateRepresentation, error) + func (c *Client) UploadCertificatePrivateKey(accessToken string, realmName, idClient, attr string, file []byte) (CertificateRepresentation, error) + type ClientDetailedError struct + HTTPStatus int + Message string + func (e ClientDetailedError) Error() string + func (e ClientDetailedError) ErrorMessage() string + func (e ClientDetailedError) Status() int + type ClientInitialAccessCreatePresentation struct + Count *int32 + Expiration *int32 + type ClientInitialAccessPresentation struct + Count *int32 + Expiration *int32 + ID *string + RemainingCount *int32 + Timestamp *int32 + Token *string + type ClientMapperRepresentation struct + ContainerID *string + ContainerName *string + ContainerType *string + MapperID *string + MapperName *string + ProtocolMapper *string + type ClientMappingsRepresentation struct + Client *string + ID *string + Mappings *[]RoleRepresentation + type ClientRepresentation struct + Access *map[string]interface{} + AdminURL *string + Attributes *map[string]interface{} + AuthorizationServicesEnabled *bool + AuthorizationSettings *ResourceServerRepresentation + BaseURL *string + BearerOnly *bool + ClientAuthenticatorType *string + ClientID *string + ClientTemplate *string + ConsentRequired *bool + DefaultRoles *[]string + Description *string + DirectAccessGrantsEnabled *bool + Enabled *bool + FrontchannelLogout *bool + FullScopeAllowed *bool + ID *string + ImplicitFlowEnabled *bool + Name *string + NodeReRegistrationTimeout *int32 + NotBefore *int32 + Protocol *string + ProtocolMappers *[]ProtocolMapperRepresentation + PublicClient *bool + RedirectUris *[]string + RegisteredNodes *map[string]interface{} + RegistrationAccessToken *string + RootURL *string + Secret *string + ServiceAccountsEnabled *bool + StandardFlowEnabled *bool + SurrogateAuthRequired *bool + UseTemplateConfig *bool + UseTemplateMappers *bool + UseTemplateScope *bool + WebOrigins *[]string + type ClientTemplateRepresentation struct + Attributes *map[string]interface{} + BearerOnly *bool + ConsentRequired *bool + Description *string + DirectAccessGrantsEnabled *bool + FrontchannelLogout *bool + FullScopeAllowed *bool + ID *string + ImplicitFlowEnabled *bool + Name *string + Protocol *string + ProtocolMappers *[]ProtocolMapperRepresentation + PublicClient *bool + ServiceAccountsEnabled *bool + StandardFlowEnabled *bool + type ComponentExportRepresentation struct + Config *MultivaluedHashMap + ID *string + Name *string + ProviderID *string + SubComponents *ComponentsExportRepresentation + SubType *string + type ComponentRepresentation struct + Config *MultivaluedHashMap + ID *string + Name *string + ParentID *string + ProviderID *string + ProviderType *string + SubType *string + type ComponentTypeRepresentation struct + HelpText *string + ID *string + Metadata *map[string]interface{} + Properties *[]ConfigPropertyRepresentation + type ComponentsExportRepresentation map[string][]ComponentExportRepresentation + type Config struct + AddrAPI string + AddrTokenProvider string + CacheTTL time.Duration + ErrorTolerance time.Duration + Timeout time.Duration + type ConfigPropertyRepresentation struct + DefaultValue *map[string]interface{} + HelpText *string + Label *string + Name *string + Options *[]string + Secret *bool + Type *string + type CredentialRepresentation struct + CreatedDate *int64 + CredentialData *string + ID *string + Temporary *bool + Type *string + UserLabel *string + Value *string + type EmailRepresentation struct + Attachments *[]AttachementRepresentation + Recipient *string + Theming *EmailThemingRepresentation + type EmailThemingRepresentation struct + Locale *string + SubjectKey *string + SubjectParameters *[]string + Template *string + TemplateParameters *map[string]string + type EventRepresentation struct + ClientID *string + Details *map[string]interface{} + Error *string + IPAddress *string + RealmID *string + SessionID *string + Time *int64 + Type *string + UserID *string + type FederatedIdentityRepresentation struct + IdentityProvider *string + UserID *string + UserName *string + type GlobalRequestResult struct + FailedRequests *[]string + SuccessRequests *[]string + type GroupRepresentation struct + Access *map[string]interface{} + Attributes *map[string]interface{} + ClientRoles *map[string]interface{} + ID *string + Name *string + Path *string + RealmRoles *[]string + SubGroups *[]GroupRepresentation + type HTTPError struct + HTTPStatus int + Message string + func (e HTTPError) Error() string + type IdentityProviderMapperRepresentation struct + Config *map[string]interface{} + ID *string + IdentityProviderAlias *string + IdentityProviderMapper *string + Name *string + type IdentityProviderRepresentation struct + AddReadTokenRoleOnCreate *bool + Alias *string + Config *map[string]interface{} + DisplayName *string + Enabled *bool + FirstBrokerLoginFlowAlias *string + InternalID *string + LinkOnly *bool + PostBrokerLoginFlowAlias *string + ProviderID *string + StoreToken *bool + TrustEmail *bool + type KeyStoreConfig struct + Format *string + KeyAlias *string + KeyPassword *string + RealmAlias *string + RealmCertificate *bool + StorePassword *string + type KeysMetadataRepresentation struct + Active *map[string]interface{} + Keys *[]KeysMetadataRepresentationKeyMetadataRepresentation + type KeysMetadataRepresentationKeyMetadataRepresentation struct + Certificate *string + Kid *string + ProviderID *string + ProviderPriority *int64 + PublicKey *string + Status *string + Type *string + type ManagementPermissionReference struct + Enabled *bool + Resource *string + ScopePermissions *map[string]interface{} + type MappingsRepresentation struct + ClientMappings *map[string]interface{} + RealmMappings *[]RoleRepresentation + type MemoryInfoRepresentation struct + Free *int64 + FreeFormated *string + FreePercentage *int64 + Total *int64 + TotalFormated *string + Used *int64 + UsedFormated *string + type MultivaluedHashMap map[string][]string + type PartialImportRepresentation struct + Clients *[]ClientRepresentation + Groups *[]GroupRepresentation + IdentityProviders *[]IdentityProviderRepresentation + IfResourceExists *string + Policy *string + Roles *RolesRepresentation + Users *[]UserRepresentation + type PasswordPolicyTypeRepresentation struct + ConfigType *string + DefaultValue *string + DisplayName *string + ID *string + MultipleSupported *bool + type PolicyRepresentation struct + Config *map[string]interface{} + DecisionStrategy *string + Description *string + ID *string + Logic *string + Name *string + Policies *[]string + Resources *[]string + Scopes *[]string + Type *string + type ProfileInfoRepresentation struct + DisabledFeatures *[]string + Name *string + type ProtocolMapperRepresentation struct + Config *map[string]interface{} + ConsentRequired *bool + ConsentText *string + ID *string + Name *string + Protocol *string + ProtocolMapper *string + type ProviderRepresentation struct + OperationalInfo *map[string]interface{} + Order *int32 + type RealmEventsConfigRepresentation struct + AdminEventsDetailsEnabled *bool + AdminEventsEnabled *bool + EnabledEventTypes *[]string + EventsEnabled *bool + EventsExpiration *int64 + EventsListeners *[]string + type RealmRepresentation struct + AccessCodeLifespan *int32 + AccessCodeLifespanLogin *int32 + AccessCodeLifespanUserAction *int32 + AccessTokenLifespan *int32 + AccessTokenLifespanForImplicitFlow *int32 + AccountTheme *string + ActionTokenGeneratedByAdminLifespan *int32 + ActionTokenGeneratedByUserLifespan *int32 + AdminEventsDetailsEnabled *bool + AdminEventsEnabled *bool + AdminTheme *string + Attributes *map[string]interface{} + AuthenticationFlows *[]AuthenticationFlowRepresentation + AuthenticatorConfig *[]AuthenticatorConfigRepresentation + BrowserFlow *string + BrowserSecurityHeaders *map[string]interface{} + BruteForceProtected *bool + ClientAuthenticationFlow *string + ClientScopeMappings *map[string]interface{} + ClientTemplates *[]ClientTemplateRepresentation + Clients *[]ClientRepresentation + Components *ComponentsExportRepresentation + DefaultGroups *[]string + DefaultLocale *string + DefaultRoles *[]string + DirectGrantFlow *string + DisplayName *string + DisplayNameHTML *string + DockerAuthenticationFlow *string + DuplicateEmailsAllowed *bool + EditUsernameAllowed *bool + EmailTheme *string + Enabled *bool + EnabledEventTypes *[]string + EventsEnabled *bool + EventsExpiration *int64 + EventsListeners *[]string + FailureFactor *int32 + FederatedUsers *[]UserRepresentation + Groups *[]GroupRepresentation + ID *string + IdentityProviderMappers *[]IdentityProviderMapperRepresentation + IdentityProviders *[]IdentityProviderRepresentation + InternationalizationEnabled *bool + KeycloakVersion *string + LoginTheme *string + LoginWithEmailAllowed *bool + MaxDeltaTimeSeconds *int32 + MaxFailureWaitSeconds *int32 + MinimumQuickLoginWaitSeconds *int32 + NotBefore *int32 + OfflineSessionIdleTimeout *int32 + OtpPolicyAlgorithm *string + OtpPolicyDigits *int32 + OtpPolicyInitialCounter *int32 + OtpPolicyLookAheadWindow *int32 + OtpPolicyPeriod *int32 + OtpPolicyType *string + OtpSupportedApplications *[]string + PasswordPolicy *string + PermanentLockout *bool + ProtocolMappers *[]ProtocolMapperRepresentation + QuickLoginCheckMilliSeconds *int64 + Realm *string + RefreshTokenMaxReuse *int32 + RegistrationAllowed *bool + RegistrationEmailAsUsername *bool + RegistrationFlow *string + RememberMe *bool + RequiredActions *[]RequiredActionProviderRepresentation + ResetCredentialsFlow *string + ResetPasswordAllowed *bool + RevokeRefreshToken *bool + Roles *RolesRepresentation + SMTPServer *map[string]interface{} + ScopeMappings *[]ScopeMappingRepresentation + SslRequired *string + SsoSessionIdleTimeout *int32 + SsoSessionMaxLifespan *int32 + SupportedLocales *[]string + UserFederationMappers *[]UserFederationMapperRepresentation + UserFederationProviders *[]UserFederationProviderRepresentation + Users *[]UserRepresentation + VerifyEmail *bool + WaitIncrementSeconds *int32 + type RecoveryCodeRepresentation struct + Code *string + type RequiredActionProviderRepresentation struct + Alias *string + Config *map[string]interface{} + DefaultAction *bool + Enabled *bool + Name *string + ProviderID *string + type ResourceOwnerRepresentation struct + ID *string + Name *string + type ResourceRepresentation struct + ID *string + IconURI *string + Name *string + Owner *ResourceOwnerRepresentation + Policies *[]PolicyRepresentation + Scopes *[]ScopeRepresentation + Type *string + TypedScopes *[]ScopeRepresentation + URI *string + type ResourceServerRepresentation struct + AllowRemoteResourceManagement *bool + ClientID *string + ID *string + Name *string + Policies *[]PolicyRepresentation + PolicyEnforcementMode *string + Resources *[]ResourceRepresentation + Scopes *[]ScopeRepresentation + type RoleRepresentation struct + ClientRole *bool + Composite *bool + Composites *RoleRepresentationComposites + ContainerID *string + Description *string + ID *string + Name *string + ScopeParamRequired *bool + type RoleRepresentationComposites struct + Client *map[string]interface{} + Realm *[]string + type RolesRepresentation struct + Client *map[string]interface{} + Realm *[]RoleRepresentation + type SMSRepresentation struct + MSISDN *string + Theming *SMSThemingRepresentation + type SMSThemingRepresentation struct + Locale *string + MessageKey *string + MessageParameters *[]string + type ScopeMappingRepresentation struct + Client *string + ClientTemplate *string + Roles *[]string + Self *string + type ScopeRepresentation struct + ID *string + IconURI *string + Name *string + Policies *[]PolicyRepresentation + Resources *[]ResourceRepresentation + type ServerInfoRepresentation struct + BuiltinProtocolMappers *map[string]interface{} + ClientImporters *[]map[string]interface{} + ClientInstallations *map[string]interface{} + ComponentTypes *map[string]interface{} + Enums *map[string]interface{} + IdentityProviders *[]map[string]interface{} + MemoryInfo *MemoryInfoRepresentation + PasswordPolicies *[]PasswordPolicyTypeRepresentation + ProfileInfo *ProfileInfoRepresentation + ProtocolMapperTypes *map[string]interface{} + Providers *map[string]interface{} + SocialProviders *[]map[string]interface{} + SystemInfo *SystemInfoRepresentation + Themes *map[string]interface{} + type SmsCodeRepresentation struct + Code *string + type SpiInfoRepresentation struct + Internal *bool + Providers *map[string]interface{} + type StatisticsUsersRepresentation struct + Disabled int64 + Inactive int64 + Total int64 + type SynchronizationResult struct + Added *int32 + Failed *int32 + Ignored *bool + Removed *int32 + Status *string + Updated *int32 + type SystemInfoRepresentation struct + FileEncoding *string + JavaHome *string + JavaRuntime *string + JavaVM *string + JavaVMVersion *string + JavaVendor *string + JavaVersion *string + OsArchitecture *string + OsName *string + OsVersion *string + ServerTime *string + Uptime *string + UptimeMillis *int64 + UserDir *string + UserLocale *string + UserName *string + UserTimezone *string + Version *string + type UserConsentRepresentation struct + ClientID *string + CreatedDate *int64 + GrantedClientRoles *map[string]interface{} + GrantedProtocolMappers *map[string]interface{} + GrantedRealmRoles *[]string + LastUpdatedDate *int64 + type UserFederationMapperRepresentation struct + Config *map[string]interface{} + FederationMapperType *string + FederationProviderDisplayName *string + ID *string + Name *string + type UserFederationProviderRepresentation struct + ChangedSyncPeriod *int32 + Config *map[string]interface{} + DisplayName *string + FullSyncPeriod *int32 + ID *string + LastSync *int32 + Priority *int32 + ProviderName *string + type UserRepresentation struct + Access *map[string]bool + Attributes *Attributes + ClientConsents *[]UserConsentRepresentation + ClientRoles *map[string][]string + CreatedTimestamp *int64 + Credentials *[]CredentialRepresentation + DisableableCredentialTypes *[]string + Email *string + EmailVerified *bool + Enabled *bool + FederatedIdentities *[]FederatedIdentityRepresentation + FederationLink *string + FirstName *string + Groups *[]string + ID *string + LastName *string + NotBefore *int32 + Origin *string + RealmRoles *[]string + RequiredActions *[]string + Self *string + ServiceAccountClientID *string + Username *string + func (u *UserRepresentation) GetAttribute(key AttributeKey) []string + func (u *UserRepresentation) GetAttributeBool(key AttributeKey) (*bool, error) + func (u *UserRepresentation) GetAttributeDate(key AttributeKey, dateLayouts []string) *string + func (u *UserRepresentation) GetAttributeInt(key AttributeKey) (*int, error) + func (u *UserRepresentation) GetAttributeString(key AttributeKey) *string + func (u *UserRepresentation) GetAttributeTime(key AttributeKey, dateLayouts []string) (*time.Time, error) + func (u *UserRepresentation) SetAttribute(key AttributeKey, value []string) + func (u *UserRepresentation) SetAttributeBool(key AttributeKey, value bool) + func (u *UserRepresentation) SetAttributeDate(key AttributeKey, date string, dateLayouts []string) + func (u *UserRepresentation) SetAttributeInt(key AttributeKey, value int) + func (u *UserRepresentation) SetAttributeString(key AttributeKey, value string) + func (u *UserRepresentation) SetAttributeTime(key AttributeKey, date time.Time, dateLayout string) + type UserSessionRepresentation struct + Clients *map[string]interface{} + ID *string + IPAddress *string + LastAccess *int64 + Start *int64 + UserID *string + Username *string