keycloak

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorIs404

func ErrorIs404(err error) bool

func ErrorIs409

func ErrorIs409(err error) bool

func GetDurationStringFromMilliseconds

func GetDurationStringFromMilliseconds(milliseconds string) (string, error)

Converts a string representing milliseconds from Keycloak API to a duration string used by the provider Ex: "3600000" => "1h0m0s"

Types

type ApiError

type ApiError struct {
	Code    int
	Message string
}

func (*ApiError) Error

func (e *ApiError) Error() string

type AuthenticationBindings

type AuthenticationBindings struct {
	RealmId                       string `json:"-"`
	BrowserFlowAlias              string `json:"browserFlow"`
	RegistrationFlowAlias         string `json:"registrationFlow"`
	DirectGrantFlowAlias          string `json:"directGrantFlow"`
	ResetCredentialsFlowAlias     string `json:"resetCredentialsFlow"`
	ClientAuthenticationFlowAlias string `json:"clientAuthenticationFlow"`
	DockerAuthenticationFlowAlias string `json:"dockerAuthenticationFlow"`
}

type AuthenticationExecution

type AuthenticationExecution struct {
	Id                   string `json:"id"`
	RealmId              string `json:"-"`
	ParentFlowAlias      string `json:"-"`
	Authenticator        string `json:"authenticator"` //can be any authenticator from GET realms/{realm}/authentication/authenticator-providers OR GET realms/{realm}/authentication/client-authenticator-providers OR GET realms/{realm}/authentication/form-action-providers
	AuthenticationConfig string `json:"authenticationConfig"`
	AuthenticationFlow   bool   `json:"authenticationFlow"`
	FlowId               string `json:"flowId"`
	ParentFlowId         string `json:"parentFlow"`
	Priority             int    `json:"priority"`
	Requirement          string `json:"requirement"`
}

this type is returned by GET /realms/${realmId}/authentication/flows/${flowAlias}/executions

type AuthenticationExecutionConfig

type AuthenticationExecutionConfig struct {
	RealmId     string            `json:"-"`
	ExecutionId string            `json:"-"`
	Id          string            `json:"id"`
	Alias       string            `json:"alias"`
	Config      map[string]string `json:"config"`
}

https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_authenticatorconfigrepresentation

type AuthenticationExecutionInfo

type AuthenticationExecutionInfo struct {
	Id                   string `json:"id"`
	RealmId              string `json:"-"`
	ParentFlowAlias      string `json:"-"`
	Alias                string `json:"alias"`
	AuthenticationConfig string `json:"authenticationConfig"`
	AuthenticationFlow   bool   `json:"authenticationFlow"`
	Configurable         bool   `json:"configurable"`
	FlowId               string `json:"flowId"`
	Index                int    `json:"index"`
	Level                int    `json:"level"`
	ProviderId           string `json:"providerId"`
	Requirement          string `json:"requirement"`
}

another model is used for GET /realms/${realmId}/authentication/executions/${executionId}, but I am going to try to avoid using this API

type AuthenticationExecutionList

type AuthenticationExecutionList []*AuthenticationExecutionInfo

func (AuthenticationExecutionList) Len

func (list AuthenticationExecutionList) Len() int

func (AuthenticationExecutionList) Less

func (list AuthenticationExecutionList) Less(i, j int) bool

func (AuthenticationExecutionList) Swap

func (list AuthenticationExecutionList) Swap(i, j int)

type AuthenticationFlow

type AuthenticationFlow struct {
	Id          string `json:"id,omitempty"`
	RealmId     string `json:"-"`
	Alias       string `json:"alias"`
	Description string `json:"description"`
	ProviderId  string `json:"providerId"` // "basic-flow" or "client-flow"
	TopLevel    bool   `json:"topLevel"`
	BuiltIn     bool   `json:"builtIn"`
}

type AuthenticationSubFlow

type AuthenticationSubFlow struct {
	Id              string `json:"id,omitempty"`
	Alias           string `json:"alias"`
	RealmId         string `json:"-"`
	ParentFlowAlias string `json:"-"`
	ProviderId      string `json:"providerId"` // "basic-flow" or "client-flow" or form-flow see /keycloak/server-spi/src/main/java/org/keycloak/models/AuthenticationFlowModel.java
	TopLevel        bool   `json:"topLevel"`   // should only be false if this is a subflow
	BuiltIn         bool   `json:"builtIn"`    // this controls whether or not this flow can be edited from the console.
	Description     string `json:"description"`
	//execution part
	Authenticator string `json:"-"` //can be any authenticator see /auth/admin/master/console/#/server-info/providers (not limited to the authenticator spi section) for example could also be part of the form-action spi
	Priority      int    `json:"-"`
	Requirement   string `json:"-"`
}

type BrowserSecurityHeaders

type BrowserSecurityHeaders struct {
	ContentSecurityPolicy           string `json:"contentSecurityPolicy"`
	ContentSecurityPolicyReportOnly string `json:"contentSecurityPolicyReportOnly"`
	StrictTransportSecurity         string `json:"strictTransportSecurity"`
	XContentTypeOptions             string `json:"xContentTypeOptions"`
	XFrameOptions                   string `json:"xFrameOptions"`
	XRobotsTag                      string `json:"xRobotsTag"`
	XXSSProtection                  string `json:"xXSSProtection"`
}

type ClientCredentials

type ClientCredentials struct {
	ClientId     string
	ClientSecret string
	Username     string
	Password     string
	GrantType    string
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
}

type ClientRoleMapping

type ClientRoleMapping struct {
	Client   string  `json:"client"`
	Id       string  `json:"id"`
	Mappings []*Role `json:"mappings"`
}

struct for the ClientMappingRepresentation https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_clientmappingsrepresentation

type Component added in v1.0.4

type Component struct {
	Id           string              `json:"id,omitempty"`
	Name         string              `json:"name"`
	ProviderId   string              `json:"providerId"`
	ProviderType string              `json:"providerType"`
	ParentId     string              `json:"parentId"`
	Config       map[string][]string `json:"config"`
}

type ComponentType

type ComponentType struct {
	Id string `json:"id"`
}

type CustomUserFederation

type CustomUserFederation struct {
	Id         string
	Name       string
	RealmId    string
	ParentId   string
	ProviderId string

	Enabled  bool
	Priority int

	CachePolicy string

	Config map[string][]string
}

type DefaultClientScope

type DefaultClientScope struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type DefaultClientScopes

type DefaultClientScopes struct {
	Default  []DefaultClientScope
	Optional []DefaultClientScope
}

type DefaultRoles added in v1.0.4

type DefaultRoles struct {
	RealmId      string   `json:"-"`
	DefaultRoles []string `json:"defaultRoles,omitempty"`
}

type FederatedIdentities

type FederatedIdentities []*FederatedIdentity

type FederatedIdentity

type FederatedIdentity struct {
	IdentityProvider string `json:"identityProvider"`
	UserId           string `json:"userId"`
	UserName         string `json:"userName"`
}

type GenericClient

type GenericClient struct {
	Id       string `json:"id,omitempty"`
	ClientId string `json:"clientId"`
	RealmId  string `json:"-"`
	Name     string `json:"name"`
	Protocol string `json:"protocol"`

	Enabled     bool   `json:"enabled"`
	Description string `json:"description"`
}

type GenericClientProtocolMapper

type GenericClientProtocolMapper struct {
	ClientId       string            `json:"-"`
	ClientScopeId  string            `json:"-"`
	Config         map[string]string `json:"config"`
	Id             string            `json:"id,omitempty"`
	Name           string            `json:"name"`
	Protocol       string            `json:"protocol"`
	ProtocolMapper string            `json:"protocolMapper"`
	RealmId        string            `json:"-"`
}

func (*GenericClientProtocolMapper) Validate

func (mapper *GenericClientProtocolMapper) Validate(keycloakClient *KeycloakClient) error

type GenericClientRepresentation

type GenericClientRepresentation struct {
	Access                             map[string]string              `json:"access"`
	AdminUrl                           string                         `json:"adminUrl"`
	Attributes                         map[string]string              `json:"attributes"`
	AuthenticationFlowBindingOverrides map[string]string              `json:"authenticationFlowBindingOverrides"`
	AuthorizationServicesEnabled       bool                           `json:"authorizationServicesEnabled"`
	AuthorizationSettings              map[string]string              `json:"authorizationSettings"`
	BaseUrl                            string                         `json:"baseUrl"`
	BearerOnly                         bool                           `json:"bearerOnly"`
	ClientAuthenticatorType            string                         `json:"clientAuthenticatorType"`
	ClientId                           string                         `json:"clientId"`
	ConsentRequired                    string                         `json:"consentRequired"`
	DefaultClientScopes                []string                       `json:"defaultClientScopes"`
	DefaultRoles                       []string                       `json:"defaultRoles"`
	Description                        string                         `json:"description"`
	DirectAccessGrantsEnabled          bool                           `json:"directAccessGrantsEnabled"`
	Enabled                            bool                           `json:"enabled"`
	FrontchannelLogout                 bool                           `json:"frontchannelLogout"`
	FullScopeAllowed                   bool                           `json:"fullScopeAllowed"`
	Id                                 string                         `json:"id"`
	ImplicitFlowEnabled                bool                           `json:"implicitFlowEnabled"`
	Name                               string                         `json:"name"`
	NotBefore                          int                            `json:"notBefore"`
	OptionalClientScopes               []string                       `json:"optionalClientScopes"`
	Origin                             string                         `json:"origin"`
	Protocol                           string                         `json:"protocol"`
	ProtocolMappers                    []*GenericClientProtocolMapper `json:"protocolMappers"`
	PublicClient                       bool                           `json:"publicClient"`
	RedirectUris                       []string                       `json:"redirectUris"`
	RegisteredNodes                    map[string]string              `json:"registeredNodes"`
	RegistrationAccessToken            string                         `json:"registrationAccessToken"`
	RootUrl                            string                         `json:"rootUrl"`
	Secret                             string                         `json:"secret"`
	ServiceAccountsEnabled             bool                           `json:"serviceAccountsEnabled"`
	StandardFlowEnabled                bool                           `json:"standardFlowEnabled"`
	SurrogateAuthRequired              bool                           `json:"surrogateAuthRequired"`
	WebOrigins                         []string                       `json:"webOrigins"`
}

https://www.keycloak.org/docs-api/6.0/javadocs/org/keycloak/representations/idm/ClientRepresentation.html

type Group

type Group struct {
	Id          string              `json:"id,omitempty"`
	RealmId     string              `json:"-"`
	ParentId    string              `json:"-"`
	Name        string              `json:"name"`
	Path        string              `json:"path,omitempty"`
	SubGroups   []*Group            `json:"subGroups,omitempty"`
	RealmRoles  []string            `json:"realmRoles,omitempty"`
	ClientRoles map[string][]string `json:"clientRoles,omitempty"`
	Attributes  map[string][]string `json:"attributes"`
}

type IdentityProvider

type IdentityProvider struct {
	Realm                     string                  `json:"-"`
	InternalId                string                  `json:"internalId,omitempty"`
	Alias                     string                  `json:"alias"`
	DisplayName               string                  `json:"displayName"`
	ProviderId                string                  `json:"providerId"`
	Enabled                   bool                    `json:"enabled"`
	StoreToken                bool                    `json:"storeToken"`
	AddReadTokenRoleOnCreate  bool                    `json:"addReadTokenRoleOnCreate"`
	AuthenticateByDefault     bool                    `json:"authenticateByDefault"`
	LinkOnly                  bool                    `json:"linkOnly"`
	TrustEmail                bool                    `json:"trustEmail"`
	FirstBrokerLoginFlowAlias string                  `json:"firstBrokerLoginFlowAlias"`
	PostBrokerLoginFlowAlias  string                  `json:"postBrokerLoginFlowAlias"`
	Config                    *IdentityProviderConfig `json:"config"`
}

type IdentityProviderConfig

type IdentityProviderConfig struct {
	Key                              string                 `json:"key,omitempty"`
	HostIp                           string                 `json:"hostIp,omitempty"`
	UseJwksUrl                       KeycloakBoolQuoted     `json:"useJwksUrl,omitempty"`
	JwksUrl                          string                 `json:"jwksUrl,omitempty"`
	ClientId                         string                 `json:"clientId,omitempty"`
	ClientSecret                     string                 `json:"clientSecret,omitempty"`
	DisableUserInfo                  KeycloakBoolQuoted     `json:"disableUserInfo"`
	UserInfoUrl                      string                 `json:"userInfoUrl,omitempty"`
	HideOnLoginPage                  KeycloakBoolQuoted     `json:"hideOnLoginPage"`
	NameIDPolicyFormat               string                 `json:"nameIDPolicyFormat,omitempty"`
	EntityId                         string                 `json:"entityId,omitempty"`
	SingleLogoutServiceUrl           string                 `json:"singleLogoutServiceUrl,omitempty"`
	SingleSignOnServiceUrl           string                 `json:"singleSignOnServiceUrl,omitempty"`
	SigningCertificate               string                 `json:"signingCertificate,omitempty"`
	SignatureAlgorithm               string                 `json:"signatureAlgorithm,omitempty"`
	XmlSignKeyInfoKeyNameTransformer string                 `json:"xmlSignKeyInfoKeyNameTransformer,omitempty"`
	PostBindingAuthnRequest          KeycloakBoolQuoted     `json:"postBindingAuthnRequest,omitempty"`
	PostBindingResponse              KeycloakBoolQuoted     `json:"postBindingResponse,omitempty"`
	PostBindingLogout                KeycloakBoolQuoted     `json:"postBindingLogout,omitempty"`
	ForceAuthn                       KeycloakBoolQuoted     `json:"forceAuthn,omitempty"`
	WantAuthnRequestsSigned          KeycloakBoolQuoted     `json:"wantAuthnRequestsSigned,omitempty"`
	WantAssertionsSigned             KeycloakBoolQuoted     `json:"wantAssertionsSigned,omitempty"`
	WantAssertionsEncrypted          KeycloakBoolQuoted     `json:"wantAssertionsEncrypted,omitempty"`
	BackchannelSupported             KeycloakBoolQuoted     `json:"backchannelSupported,omitempty"`
	ValidateSignature                KeycloakBoolQuoted     `json:"validateSignature,omitempty"`
	AuthorizationUrl                 string                 `json:"authorizationUrl,omitempty"`
	TokenUrl                         string                 `json:"tokenUrl,omitempty"`
	LoginHint                        string                 `json:"loginHint,omitempty"`
	UILocales                        KeycloakBoolQuoted     `json:"uiLocales,omitempty"`
	LogoutUrl                        string                 `json:"logoutUrl,omitempty"`
	DefaultScope                     string                 `json:"defaultScope,omitempty"`
	AcceptsPromptNoneForwFrmClt      KeycloakBoolQuoted     `json:"acceptsPromptNoneForwardFromClient,omitempty"`
	HostedDomain                     string                 `json:"hostedDomain,omitempty"`
	UserIp                           KeycloakBoolQuoted     `json:"userIp,omitempty"`
	OfflineAccess                    KeycloakBoolQuoted     `json:"offlineAccess,omitempty"`
	PrincipalType                    string                 `json:"principalType,omitempty"`
	PrincipalAttribute               string                 `json:"principalAttribute,omitempty"`
	GuiOrder                         string                 `json:"guiOrder,omitempty"`
	SyncMode                         string                 `json:"syncMode,omitempty"`
	ExtraConfig                      map[string]interface{} `json:"-"`
}

func (*IdentityProviderConfig) MarshalJSON

func (f *IdentityProviderConfig) MarshalJSON() ([]byte, error)

func (*IdentityProviderConfig) UnmarshalJSON

func (f *IdentityProviderConfig) UnmarshalJSON(data []byte) error

type IdentityProviderMapper

type IdentityProviderMapper struct {
	Realm                  string                 `json:"-"`
	Provider               string                 `json:"-"`
	Id                     string                 `json:"id,omitempty"`
	Name                   string                 `json:"name,omitempty"`
	IdentityProviderAlias  string                 `json:"identityProviderAlias,omitempty"`
	IdentityProviderMapper string                 `json:"identityProviderMapper,omitempty"`
	Config                 map[string]interface{} `json:"config,omitempty"`
}

type IdentityProviderPermissions

type IdentityProviderPermissions struct {
	RealmId          string                 `json:"-"`
	ProviderAlias    string                 `json:"-"`
	Enabled          bool                   `json:"enabled"`
	Resource         string                 `json:"resource"`
	ScopePermissions map[string]interface{} `json:"scopePermissions"`
}

func (*IdentityProviderPermissions) GetTokenExchangeScopedPermissionId

func (identityProviderPermissions *IdentityProviderPermissions) GetTokenExchangeScopedPermissionId() (string, error)

type IdentityProviderPermissionsInput

type IdentityProviderPermissionsInput struct {
	Enabled bool `json:"enabled"`
}

type Key

type Key struct {
	Algorithm        *string `json:"algorithm,omitempty"`
	Certificate      *string `json:"certificate,omitempty"`
	ProviderId       *string `json:"providerId,omitempty"`
	ProviderPriority *int    `json:"providerPriority,omitempty"`
	PublicKey        *string `json:"publicKey,omitempty"`
	Kid              *string `json:"kid,omitempty"`
	Status           *string `json:"status,omitempty"`
	Type             *string `json:"type,omitempty"`
}

type KeycloakBoolQuoted

type KeycloakBoolQuoted bool

func (KeycloakBoolQuoted) MarshalJSON

func (c KeycloakBoolQuoted) MarshalJSON() ([]byte, error)

func (*KeycloakBoolQuoted) UnmarshalJSON

func (c *KeycloakBoolQuoted) UnmarshalJSON(in []byte) error

type KeycloakClient

type KeycloakClient struct {
	// contains filtered or unexported fields
}

func NewKeycloakClient

func NewKeycloakClient(url, basePath, clientId, clientSecret, realm, username, password string, initialLogin bool, clientTimeout int, caCert string, tlsInsecureSkipVerify bool, userAgent string, additionalHeaders map[string]string) (*KeycloakClient, error)

func (*KeycloakClient) AddClientRolesToGroup

func (keycloakClient *KeycloakClient) AddClientRolesToGroup(realmId, groupId, clientId string, roles []*Role) error

func (*KeycloakClient) AddClientRolesToUser

func (keycloakClient *KeycloakClient) AddClientRolesToUser(realmId, userId, clientId string, roles []*Role) error

func (*KeycloakClient) AddCompositesToRole

func (keycloakClient *KeycloakClient) AddCompositesToRole(role *Role, compositeRoles []*Role) error

func (*KeycloakClient) AddDefaultDefaultClientScope

func (keycloakClient *KeycloakClient) AddDefaultDefaultClientScope(realmId string, dcs DefaultClientScope) error

func (*KeycloakClient) AddOptionalDefaultClientScope

func (keycloakClient *KeycloakClient) AddOptionalDefaultClientScope(realmId string, dcs DefaultClientScope) error

func (*KeycloakClient) AddRealmRolesToGroup

func (keycloakClient *KeycloakClient) AddRealmRolesToGroup(realmId, groupId string, roles []*Role) error

func (*KeycloakClient) AddRealmRolesToUser

func (keycloakClient *KeycloakClient) AddRealmRolesToUser(realmId, userId string, roles []*Role) error

func (*KeycloakClient) AddUserToGroups

func (keycloakClient *KeycloakClient) AddUserToGroups(groupIds []string, userId string, realmId string) error

func (*KeycloakClient) AddUsersToGroup

func (keycloakClient *KeycloakClient) AddUsersToGroup(realmId, groupId string, users []interface{}) error

func (*KeycloakClient) AttachOpenidClientDefaultScopes

func (keycloakClient *KeycloakClient) AttachOpenidClientDefaultScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) AttachOpenidClientOptionalScopes

func (keycloakClient *KeycloakClient) AttachOpenidClientOptionalScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) AttachSamlClientDefaultScopes

func (keycloakClient *KeycloakClient) AttachSamlClientDefaultScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) CreateComponent added in v1.0.4

func (keycloakClient *KeycloakClient) CreateComponent(realm string, component Component) error

func (*KeycloakClient) CreateRequiredAction

func (keycloakClient *KeycloakClient) CreateRequiredAction(requiredAction *RequiredAction) error

func (*KeycloakClient) CreateRole

func (keycloakClient *KeycloakClient) CreateRole(role *Role) error

func (*KeycloakClient) CreateRoleScopeMapping

func (keycloakClient *KeycloakClient) CreateRoleScopeMapping(realmId string, clientId string, clientScopeId string, role *Role) error

func (*KeycloakClient) DeleteAuthenticationExecution

func (keycloakClient *KeycloakClient) DeleteAuthenticationExecution(realmId, id string) error

func (*KeycloakClient) DeleteAuthenticationFlow

func (keycloakClient *KeycloakClient) DeleteAuthenticationFlow(realmId, id string) error

func (*KeycloakClient) DeleteAuthenticationSubFlow

func (keycloakClient *KeycloakClient) DeleteAuthenticationSubFlow(realmId, parentFlowAlias, id string) error

func (*KeycloakClient) DeleteBuiltInFlowExecutors

func (keycloakClient *KeycloakClient) DeleteBuiltInFlowExecutors(flow *AuthenticationFlow) error

func (*KeycloakClient) DeleteComponent

func (keycloakClient *KeycloakClient) DeleteComponent(realmId, id string) error

func (*KeycloakClient) DeleteCustomUserFederation

func (keycloakClient *KeycloakClient) DeleteCustomUserFederation(realmName, id string) error

func (*KeycloakClient) DeleteDefaultDefaultClientScope

func (keycloakClient *KeycloakClient) DeleteDefaultDefaultClientScope(realmId string, id string) error

func (*KeycloakClient) DeleteDefaultGroup

func (keycloakClient *KeycloakClient) DeleteDefaultGroup(realmName, groupId string) error

DeleteDefaultGroup deletes a group ID from the realm default groups.

func (*KeycloakClient) DeleteGenericClientProtocolMapper

func (keycloakClient *KeycloakClient) DeleteGenericClientProtocolMapper(realmId string, clientId string, clientScopeId string, mapperId string) error

func (*KeycloakClient) DeleteGroup

func (keycloakClient *KeycloakClient) DeleteGroup(realmId, id string) error

func (*KeycloakClient) DeleteIdentityProvider

func (keycloakClient *KeycloakClient) DeleteIdentityProvider(realm, alias string) error

func (*KeycloakClient) DeleteIdentityProviderMapper

func (keycloakClient *KeycloakClient) DeleteIdentityProviderMapper(realm, idpAlias, id string) error

func (*KeycloakClient) DeleteLdapFullNameMapper

func (keycloakClient *KeycloakClient) DeleteLdapFullNameMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapGroupMapper

func (keycloakClient *KeycloakClient) DeleteLdapGroupMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapHardcodedGroupMapper

func (keycloakClient *KeycloakClient) DeleteLdapHardcodedGroupMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapHardcodedRoleMapper

func (keycloakClient *KeycloakClient) DeleteLdapHardcodedRoleMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapMsadLdsUserAccountControlMapper

func (keycloakClient *KeycloakClient) DeleteLdapMsadLdsUserAccountControlMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapMsadUserAccountControlMapper

func (keycloakClient *KeycloakClient) DeleteLdapMsadUserAccountControlMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapRoleMapper

func (keycloakClient *KeycloakClient) DeleteLdapRoleMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapUserAttributeMapper

func (keycloakClient *KeycloakClient) DeleteLdapUserAttributeMapper(realmId, id string) error

func (*KeycloakClient) DeleteLdapUserFederation

func (keycloakClient *KeycloakClient) DeleteLdapUserFederation(realmId, id string) error

func (*KeycloakClient) DeleteLdapUserFederationMappers

func (keycloakClient *KeycloakClient) DeleteLdapUserFederationMappers(realmId, ldapUserFederationId string) error

func (*KeycloakClient) DeleteOpenIdAudienceProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdAudienceProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdFullNameProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdFullNameProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdGroupMembershipProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdGroupMembershipProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdHardcodedClaimProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedClaimProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdHardcodedRoleProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdScriptProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdScriptProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdUserAttributeProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdUserClientRoleProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdUserClientRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdUserPropertyProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdUserRealmRoleProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdUserRealmRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenIdUserSessionNoteProtocolMapper

func (keycloakClient *KeycloakClient) DeleteOpenIdUserSessionNoteProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteOpenidClient

func (keycloakClient *KeycloakClient) DeleteOpenidClient(realmId, id string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationAggregatePolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationAggregatePolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationClientPolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationClientPolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationGroupPolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationGroupPolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationJSPolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationJSPolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationPermission

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationPermission(realmId, resourceServerId, permissionId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationResource

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationResource(realmId, clientId, resourceId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationRolePolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationRolePolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationScope

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationScope(realmId, resourceServerId, scopeId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationTimePolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationTimePolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientAuthorizationUserPolicy

func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationUserPolicy(realmId, resourceServerId, policyId string) error

func (*KeycloakClient) DeleteOpenidClientScope

func (keycloakClient *KeycloakClient) DeleteOpenidClientScope(realmId, id string) error

func (*KeycloakClient) DeleteOpenidClientServiceAccountRealmRole

func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRealmRole(realm, serviceAccountUserId, roleId string) error

func (*KeycloakClient) DeleteOpenidClientServiceAccountRole

func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRole(realm, serviceAccountUserId, clientId, roleId string) error

func (*KeycloakClient) DeleteOptionalDefaultClientScope

func (keycloakClient *KeycloakClient) DeleteOptionalDefaultClientScope(realmId string, id string) error

func (*KeycloakClient) DeleteRealm

func (keycloakClient *KeycloakClient) DeleteRealm(name string) error

func (*KeycloakClient) DeleteRequiredAction

func (keycloakClient *KeycloakClient) DeleteRequiredAction(realmName string, alias string) error

func (*KeycloakClient) DeleteRole

func (keycloakClient *KeycloakClient) DeleteRole(realmId, id string) error

func (*KeycloakClient) DeleteRoleScopeMapping

func (keycloakClient *KeycloakClient) DeleteRoleScopeMapping(realmId string, clientId string, clientScopeId string, role *Role) error

func (*KeycloakClient) DeleteSamlClient

func (keycloakClient *KeycloakClient) DeleteSamlClient(realmId, id string) error

func (*KeycloakClient) DeleteSamlClientScope

func (keycloakClient *KeycloakClient) DeleteSamlClientScope(realmId, id string) error

func (*KeycloakClient) DeleteSamlScriptProtocolMapper

func (keycloakClient *KeycloakClient) DeleteSamlScriptProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteSamlUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) DeleteSamlUserAttributeProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteSamlUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) DeleteSamlUserPropertyProtocolMapper(realmId, clientId, clientScopeId, mapperId string) error

func (*KeycloakClient) DeleteUser

func (keycloakClient *KeycloakClient) DeleteUser(realmId, id string) error

func (*KeycloakClient) DetachOpenidClientDefaultScopes

func (keycloakClient *KeycloakClient) DetachOpenidClientDefaultScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) DetachOpenidClientOptionalScopes

func (keycloakClient *KeycloakClient) DetachOpenidClientOptionalScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) DetachSamlClientDefaultScopes

func (keycloakClient *KeycloakClient) DetachSamlClientDefaultScopes(realmId, clientId string, scopeNames []string) error

func (*KeycloakClient) DisableIdentityProviderPermissions

func (keycloakClient *KeycloakClient) DisableIdentityProviderPermissions(realmId, providerAlias string) error

func (*KeycloakClient) DisableOpenidClientPermissions

func (keycloakClient *KeycloakClient) DisableOpenidClientPermissions(realmId, clientId string) error

func (*KeycloakClient) DisableUsersPermissions

func (keycloakClient *KeycloakClient) DisableUsersPermissions(realmId string) error

func (*KeycloakClient) EnableIdentityProviderPermissions

func (keycloakClient *KeycloakClient) EnableIdentityProviderPermissions(realmId, providerAlias string) error

func (*KeycloakClient) EnableOpenidClientPermissions

func (keycloakClient *KeycloakClient) EnableOpenidClientPermissions(realmId, clientId string) error

func (*KeycloakClient) EnableUsersPermissions

func (keycloakClient *KeycloakClient) EnableUsersPermissions(realmId string) error

func (*KeycloakClient) GetAuthenticationBindings

func (keycloakClient *KeycloakClient) GetAuthenticationBindings(realmId string) (*AuthenticationBindings, error)

func (*KeycloakClient) GetAuthenticationExecution

func (keycloakClient *KeycloakClient) GetAuthenticationExecution(realmId, parentFlowAlias, id string) (*AuthenticationExecution, error)

func (*KeycloakClient) GetAuthenticationExecutionInfoFromProviderId

func (keycloakClient *KeycloakClient) GetAuthenticationExecutionInfoFromProviderId(realmId, parentFlowAlias, providerId string) (*AuthenticationExecutionInfo, error)

func (*KeycloakClient) GetAuthenticationFlow

func (keycloakClient *KeycloakClient) GetAuthenticationFlow(realmId, id string) (*AuthenticationFlow, error)

func (*KeycloakClient) GetAuthenticationFlowFromAlias

func (keycloakClient *KeycloakClient) GetAuthenticationFlowFromAlias(realmId, alias string) (*AuthenticationFlow, error)

func (*KeycloakClient) GetAuthenticationSubFlow

func (keycloakClient *KeycloakClient) GetAuthenticationSubFlow(realmId, parentFlowAlias, id string) (*AuthenticationSubFlow, error)

func (*KeycloakClient) GetAuthenticationSubFlowByAlias

func (keycloakClient *KeycloakClient) GetAuthenticationSubFlowByAlias(realmId, parentFlowAlias, subFlowAlias string) (*AuthenticationSubFlow, error)

func (*KeycloakClient) GetClientAuthorizationPolicyByName

func (keycloakClient *KeycloakClient) GetClientAuthorizationPolicyByName(realmId, resourceServerId, name string) (*OpenidClientAuthorizationPolicy, error)

func (*KeycloakClient) GetClientRoleUsers

func (keycloakClient *KeycloakClient) GetClientRoleUsers(realmId string, roles []*Role) (*[]UsersInRole, error)

func (*KeycloakClient) GetClientRoles

func (keycloakClient *KeycloakClient) GetClientRoles(realmId string, clients []*OpenidClient) ([]*Role, error)

func (*KeycloakClient) GetComponent added in v1.0.4

func (keycloakClient *KeycloakClient) GetComponent(realm, id string) (*Component, error)

func (*KeycloakClient) GetComponents added in v1.0.4

func (keycloakClient *KeycloakClient) GetComponents(realm, parent, providerType string) ([]Component, error)

func (*KeycloakClient) GetCustomUserFederation

func (keycloakClient *KeycloakClient) GetCustomUserFederation(realmName, id string) (*CustomUserFederation, error)

func (*KeycloakClient) GetCustomUserFederations

func (keycloakClient *KeycloakClient) GetCustomUserFederations(realmName, realmId string) (*[]CustomUserFederation, error)

func (*KeycloakClient) GetDefaultGroups

func (keycloakClient *KeycloakClient) GetDefaultGroups(realmName string) ([]Group, error)

GetDefaultGroups returns all the default groups for a realm.

func (*KeycloakClient) GetDefaultRoles added in v1.0.4

func (keycloakClient *KeycloakClient) GetDefaultRoles(realmId string) (*DefaultRoles, error)

func (*KeycloakClient) GetGenericClient

func (keycloakClient *KeycloakClient) GetGenericClient(realmId, id string) (*GenericClient, error)

func (*KeycloakClient) GetGenericClientByClientId

func (keycloakClient *KeycloakClient) GetGenericClientByClientId(realmId, clientId string) (*GenericClient, error)

func (*KeycloakClient) GetGenericClientProtocolMapper

func (keycloakClient *KeycloakClient) GetGenericClientProtocolMapper(realmId string, clientId string, clientScopeId string, mapperId string) (*GenericClientProtocolMapper, error)

func (*KeycloakClient) GetGenericClientProtocolMapperByName

func (keycloakClient *KeycloakClient) GetGenericClientProtocolMapperByName(realmId, clientId, clientScopeId, mapperName string) (*GenericClientProtocolMapper, error)

func (*KeycloakClient) GetGenericClientProtocolMappers

func (keycloakClient *KeycloakClient) GetGenericClientProtocolMappers(realmId string, clientId string) (*OpenidClientWithGenericClientProtocolMappers, error)

func (*KeycloakClient) GetGenericClientProtocolMappersByParent

func (keycloakClient *KeycloakClient) GetGenericClientProtocolMappersByParent(realmId, clientId, clientScopeId string) ([]GenericClientProtocolMapper, error)

func (*KeycloakClient) GetGroup

func (keycloakClient *KeycloakClient) GetGroup(realmId, id string) (*Group, error)

func (*KeycloakClient) GetGroupByName

func (keycloakClient *KeycloakClient) GetGroupByName(realmId, name string) (*Group, error)

func (*KeycloakClient) GetGroupMembers

func (keycloakClient *KeycloakClient) GetGroupMembers(realmId, groupId string) ([]*User, error)

func (*KeycloakClient) GetGroupRoleMappings

func (keycloakClient *KeycloakClient) GetGroupRoleMappings(realmId string, userId string) (*RoleMapping, error)

func (*KeycloakClient) GetGroups

func (keycloakClient *KeycloakClient) GetGroups(realmId string) ([]*Group, error)

func (*KeycloakClient) GetIdentityProvider

func (keycloakClient *KeycloakClient) GetIdentityProvider(realm, alias string) (*IdentityProvider, error)

func (*KeycloakClient) GetIdentityProviderMapper

func (keycloakClient *KeycloakClient) GetIdentityProviderMapper(realm, idpAlias, id string) (*IdentityProviderMapper, error)

func (*KeycloakClient) GetIdentityProviderPermissions

func (keycloakClient *KeycloakClient) GetIdentityProviderPermissions(realmId, providerAlias string) (*IdentityProviderPermissions, error)

func (*KeycloakClient) GetLdapFullNameMapper

func (keycloakClient *KeycloakClient) GetLdapFullNameMapper(realmId, id string) (*LdapFullNameMapper, error)

func (*KeycloakClient) GetLdapGroupMapper

func (keycloakClient *KeycloakClient) GetLdapGroupMapper(realmId, id string) (*LdapGroupMapper, error)

func (*KeycloakClient) GetLdapHardcodedGroupMapper

func (keycloakClient *KeycloakClient) GetLdapHardcodedGroupMapper(realmId, id string) (*LdapHardcodedGroupMapper, error)

func (*KeycloakClient) GetLdapHardcodedRoleMapper

func (keycloakClient *KeycloakClient) GetLdapHardcodedRoleMapper(realmId, id string) (*LdapHardcodedRoleMapper, error)

func (*KeycloakClient) GetLdapMsadLdsUserAccountControlMapper

func (keycloakClient *KeycloakClient) GetLdapMsadLdsUserAccountControlMapper(realmId, id string) (*LdapMsadLdsUserAccountControlMapper, error)

func (*KeycloakClient) GetLdapMsadUserAccountControlMapper

func (keycloakClient *KeycloakClient) GetLdapMsadUserAccountControlMapper(realmId, id string) (*LdapMsadUserAccountControlMapper, error)

func (*KeycloakClient) GetLdapRoleMapper

func (keycloakClient *KeycloakClient) GetLdapRoleMapper(realmId, id string) (*LdapRoleMapper, error)

func (*KeycloakClient) GetLdapUserAttributeMapper

func (keycloakClient *KeycloakClient) GetLdapUserAttributeMapper(realmId, id string) (*LdapUserAttributeMapper, error)

func (*KeycloakClient) GetLdapUserFederation

func (keycloakClient *KeycloakClient) GetLdapUserFederation(realmId, id string) (*LdapUserFederation, error)

func (*KeycloakClient) GetLdapUserFederationMappers

func (keycloakClient *KeycloakClient) GetLdapUserFederationMappers(realmId, id string) (*[]interface{}, error)

func (*KeycloakClient) GetOpenIdAudienceProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdAudienceProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdAudienceProtocolMapper, error)

func (*KeycloakClient) GetOpenIdClientScopeByName

func (keycloakClient *KeycloakClient) GetOpenIdClientScopeByName(realmId, scopeName string) (*OpenidClientScope, error)

func (*KeycloakClient) GetOpenIdFullNameProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdFullNameProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdFullNameProtocolMapper, error)

func (*KeycloakClient) GetOpenIdGroupMembershipProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdGroupMembershipProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdGroupMembershipProtocolMapper, error)

func (*KeycloakClient) GetOpenIdHardcodedClaimProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdHardcodedClaimProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedClaimProtocolMapper, error)

func (*KeycloakClient) GetOpenIdHardcodedRoleProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdHardcodedRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedRoleProtocolMapper, error)

func (*KeycloakClient) GetOpenIdScriptProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdScriptProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdScriptProtocolMapper, error)

func (*KeycloakClient) GetOpenIdUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdUserAttributeProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserAttributeProtocolMapper, error)

func (*KeycloakClient) GetOpenIdUserClientRoleProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdUserClientRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserClientRoleProtocolMapper, error)

func (*KeycloakClient) GetOpenIdUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdUserPropertyProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserPropertyProtocolMapper, error)

func (*KeycloakClient) GetOpenIdUserRealmRoleProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdUserRealmRoleProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserRealmRoleProtocolMapper, error)

func (*KeycloakClient) GetOpenIdUserSessionNoteProtocolMapper

func (keycloakClient *KeycloakClient) GetOpenIdUserSessionNoteProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserSessionNoteProtocolMapper, error)

func (*KeycloakClient) GetOpenidClient

func (keycloakClient *KeycloakClient) GetOpenidClient(realmId, id string) (*OpenidClient, error)

func (*KeycloakClient) GetOpenidClientAuthorizationAggregatePolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationAggregatePolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationAggregatePolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationClientPolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationClientPolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationClientPolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationGroupPolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationGroupPolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationGroupPolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationJSPolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationJSPolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationJSPolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationPermission

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationPermission(realm, resourceServerId, id string) (*OpenidClientAuthorizationPermission, error)

func (*KeycloakClient) GetOpenidClientAuthorizationResource

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResource(realm, resourceServerId, resourceId string) (*OpenidClientAuthorizationResource, error)

func (*KeycloakClient) GetOpenidClientAuthorizationResourceByName

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResourceByName(realmId, resourceServerId, name string) (*OpenidClientAuthorizationResource, error)

func (*KeycloakClient) GetOpenidClientAuthorizationRolePolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationRolePolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationRolePolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationScope

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationScope(realm, resourceServerId, scopeId string) (*OpenidClientAuthorizationScope, error)

func (*KeycloakClient) GetOpenidClientAuthorizationTimePolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationTimePolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationTimePolicy, error)

func (*KeycloakClient) GetOpenidClientAuthorizationUserPolicy

func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationUserPolicy(realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationUserPolicy, error)

func (*KeycloakClient) GetOpenidClientByClientId

func (keycloakClient *KeycloakClient) GetOpenidClientByClientId(realmId, clientId string) (*OpenidClient, error)

func (*KeycloakClient) GetOpenidClientDefaultScopes

func (keycloakClient *KeycloakClient) GetOpenidClientDefaultScopes(realmId, clientId string) ([]*OpenidClientScope, error)

func (*KeycloakClient) GetOpenidClientOptionalScopes

func (keycloakClient *KeycloakClient) GetOpenidClientOptionalScopes(realmId, clientId string) ([]*OpenidClientScope, error)

func (*KeycloakClient) GetOpenidClientPermissions

func (keycloakClient *KeycloakClient) GetOpenidClientPermissions(realmId, clientId string) (*OpenidClientPermissions, error)

func (*KeycloakClient) GetOpenidClientScope

func (keycloakClient *KeycloakClient) GetOpenidClientScope(realmId, id string) (*OpenidClientScope, error)

func (*KeycloakClient) GetOpenidClientServiceAccountClientRoles

func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountClientRoles(realm, serviceAccountUserId, clientId string) ([]*OpenidClientServiceAccountRole, error)

func (*KeycloakClient) GetOpenidClientServiceAccountRealmRole

func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRole(realm, serviceAccountUserId, roleId string) (*OpenidClientServiceAccountRealmRole, error)

func (*KeycloakClient) GetOpenidClientServiceAccountRealmRoles

func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRoles(realm, serviceAccountUserId string) ([]*OpenidClientServiceAccountRole, error)

func (*KeycloakClient) GetOpenidClientServiceAccountRole

func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRole(realm, serviceAccountUserId, clientId, roleId string) (*OpenidClientServiceAccountRole, error)

func (*KeycloakClient) GetOpenidClientServiceAccountUserId

func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountUserId(realmId, clientId string) (*User, error)

func (*KeycloakClient) GetOpenidClients

func (keycloakClient *KeycloakClient) GetOpenidClients(realmId string, withSecrets bool) ([]*OpenidClient, error)

func (*KeycloakClient) GetOpenidDefaultClientScopes

func (keycloakClient *KeycloakClient) GetOpenidDefaultClientScopes(realmId, clientId string) (*[]OpenidClientScope, error)

func (*KeycloakClient) GetOpenidOptionalClientScopes

func (keycloakClient *KeycloakClient) GetOpenidOptionalClientScopes(realmId, clientId string) (*[]OpenidClientScope, error)

func (*KeycloakClient) GetRealm

func (keycloakClient *KeycloakClient) GetRealm(name string) (*Realm, error)

func (*KeycloakClient) GetRealmDefaultClientScopes

func (keycloakClient *KeycloakClient) GetRealmDefaultClientScopes(realmId string) ([]*OpenidClientScope, error)

func (*KeycloakClient) GetRealmEventsConfig

func (keycloakClient *KeycloakClient) GetRealmEventsConfig(realmId string) (*RealmEventsConfig, error)

func (*KeycloakClient) GetRealmKeys

func (keycloakClient *KeycloakClient) GetRealmKeys(name string) (*Keys, error)

func (*KeycloakClient) GetRealmOptionalClientScopes

func (keycloakClient *KeycloakClient) GetRealmOptionalClientScopes(realmId string) ([]*OpenidClientScope, error)

func (*KeycloakClient) GetRealmRoles

func (keycloakClient *KeycloakClient) GetRealmRoles(realmId string) ([]*Role, error)

func (*KeycloakClient) GetRealms

func (keycloakClient *KeycloakClient) GetRealms() ([]*Realm, error)

func (*KeycloakClient) GetRequiredAction

func (keycloakClient *KeycloakClient) GetRequiredAction(realmId string, alias string) (*RequiredAction, error)

func (*KeycloakClient) GetRequiredActions

func (keycloakClient *KeycloakClient) GetRequiredActions(realmId string) ([]*RequiredAction, error)

func (*KeycloakClient) GetRole

func (keycloakClient *KeycloakClient) GetRole(realmId, id string) (*Role, error)

func (*KeycloakClient) GetRoleByName

func (keycloakClient *KeycloakClient) GetRoleByName(realmId, clientId, name string) (*Role, error)

func (*KeycloakClient) GetRoleComposites

func (keycloakClient *KeycloakClient) GetRoleComposites(role *Role) ([]*Role, error)

func (*KeycloakClient) GetRoleScopeMapping

func (keycloakClient *KeycloakClient) GetRoleScopeMapping(realmId string, clientId string, clientScopeId string, role *Role) (*Role, error)

func (*KeycloakClient) GetSamlClient

func (keycloakClient *KeycloakClient) GetSamlClient(realmId, id string) (*SamlClient, error)

func (*KeycloakClient) GetSamlClientByClientId

func (keycloakClient *KeycloakClient) GetSamlClientByClientId(realmId, clientId string) (*SamlClient, error)

func (*KeycloakClient) GetSamlClientDefaultScopes

func (keycloakClient *KeycloakClient) GetSamlClientDefaultScopes(realmId, clientId string) ([]*SamlClientScope, error)

func (*KeycloakClient) GetSamlClientInstallationProvider

func (keycloakClient *KeycloakClient) GetSamlClientInstallationProvider(realmId, id string, providerId string) ([]byte, error)

func (*KeycloakClient) GetSamlClientScope

func (keycloakClient *KeycloakClient) GetSamlClientScope(realmId, id string) (*SamlClientScope, error)

func (*KeycloakClient) GetSamlDefaultClientScopes

func (keycloakClient *KeycloakClient) GetSamlDefaultClientScopes(realmId, clientId string) (*[]SamlClientScope, error)

func (*KeycloakClient) GetSamlScriptProtocolMapper

func (keycloakClient *KeycloakClient) GetSamlScriptProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*SamlScriptProtocolMapper, error)

func (*KeycloakClient) GetSamlUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) GetSamlUserAttributeProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*SamlUserAttributeProtocolMapper, error)

func (*KeycloakClient) GetSamlUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) GetSamlUserPropertyProtocolMapper(realmId, clientId, clientScopeId, mapperId string) (*SamlUserPropertyProtocolMapper, error)

func (*KeycloakClient) GetServerInfo

func (keycloakClient *KeycloakClient) GetServerInfo() (*ServerInfo, error)

func (*KeycloakClient) GetUnregisteredRequiredActions

func (keycloakClient *KeycloakClient) GetUnregisteredRequiredActions(realmId string) ([]*RequiredAction, error)

func (*KeycloakClient) GetUser

func (keycloakClient *KeycloakClient) GetUser(realmId, id string) (*User, error)

func (*KeycloakClient) GetUserByUsername

func (keycloakClient *KeycloakClient) GetUserByUsername(realmId, username string) (*User, error)

func (*KeycloakClient) GetUserGroups

func (keycloakClient *KeycloakClient) GetUserGroups(realmId, userId string) ([]*Group, error)

func (*KeycloakClient) GetUserRoleMappings

func (keycloakClient *KeycloakClient) GetUserRoleMappings(realmId string, userId string) (*RoleMapping, error)

func (*KeycloakClient) GetUsers

func (keycloakClient *KeycloakClient) GetUsers(realmId string) ([]*User, error)

func (*KeycloakClient) GetUsersPermissions

func (keycloakClient *KeycloakClient) GetUsersPermissions(realmId string) (*UsersPermissions, error)

func (*KeycloakClient) ListAuthenticationExecutions

func (keycloakClient *KeycloakClient) ListAuthenticationExecutions(realmId, parentFlowAlias string) (AuthenticationExecutionList, error)

func (*KeycloakClient) ListAuthenticationFlows

func (keycloakClient *KeycloakClient) ListAuthenticationFlows(realmId string) ([]*AuthenticationFlow, error)

func (*KeycloakClient) ListGroupsWithName

func (keycloakClient *KeycloakClient) ListGroupsWithName(realmId, name string) ([]*Group, error)

func (*KeycloakClient) ListOpenidClientScopesWithFilter

func (keycloakClient *KeycloakClient) ListOpenidClientScopesWithFilter(realmId string, filter OpenidClientScopeFilterFunc) ([]*OpenidClientScope, error)

func (*KeycloakClient) ListSamlClientScopesWithFilter

func (keycloakClient *KeycloakClient) ListSamlClientScopesWithFilter(realmId string, filter SamlClientScopeFilterFunc) ([]*SamlClientScope, error)

func (*KeycloakClient) LowerAuthenticationExecutionPriority

func (keycloakClient *KeycloakClient) LowerAuthenticationExecutionPriority(realmId, id string) error

func (*KeycloakClient) LowerAuthenticationSubFlowPriority

func (keycloakClient *KeycloakClient) LowerAuthenticationSubFlowPriority(realmId, parentFlowAlias, id string) error

func (*KeycloakClient) NewAuthenticationExecution

func (keycloakClient *KeycloakClient) NewAuthenticationExecution(execution *AuthenticationExecution) error

func (*KeycloakClient) NewAuthenticationFlow

func (keycloakClient *KeycloakClient) NewAuthenticationFlow(authenticationFlow *AuthenticationFlow) error

func (*KeycloakClient) NewAuthenticationSubFlow

func (keycloakClient *KeycloakClient) NewAuthenticationSubFlow(authenticationSubFlow *AuthenticationSubFlow) error

func (*KeycloakClient) NewCustomUserFederation

func (keycloakClient *KeycloakClient) NewCustomUserFederation(customUserFederation *CustomUserFederation) error

func (*KeycloakClient) NewGenericClientDescription

func (keycloakClient *KeycloakClient) NewGenericClientDescription(realmId string, body string) (*GenericClientRepresentation, error)

func (*KeycloakClient) NewGenericClientProtocolMapper

func (keycloakClient *KeycloakClient) NewGenericClientProtocolMapper(genericClientProtocolMapper *GenericClientProtocolMapper) error

func (*KeycloakClient) NewGroup

func (keycloakClient *KeycloakClient) NewGroup(group *Group) error

* Top level groups are created via POST /realms/${realm_id}/groups * Child groups are created via POST /realms/${realm_id}/groups/${parent_id}/children

func (*KeycloakClient) NewIdentityProvider

func (keycloakClient *KeycloakClient) NewIdentityProvider(identityProvider *IdentityProvider) error

func (*KeycloakClient) NewIdentityProviderMapper

func (keycloakClient *KeycloakClient) NewIdentityProviderMapper(identityProviderMapper *IdentityProviderMapper) error

func (*KeycloakClient) NewLdapFullNameMapper

func (keycloakClient *KeycloakClient) NewLdapFullNameMapper(ldapFullNameMapper *LdapFullNameMapper) error

func (*KeycloakClient) NewLdapGroupMapper

func (keycloakClient *KeycloakClient) NewLdapGroupMapper(ldapGroupMapper *LdapGroupMapper) error

func (*KeycloakClient) NewLdapHardcodedGroupMapper

func (keycloakClient *KeycloakClient) NewLdapHardcodedGroupMapper(ldapMapper *LdapHardcodedGroupMapper) error

func (*KeycloakClient) NewLdapHardcodedRoleMapper

func (keycloakClient *KeycloakClient) NewLdapHardcodedRoleMapper(ldapMapper *LdapHardcodedRoleMapper) error

func (*KeycloakClient) NewLdapMsadLdsUserAccountControlMapper

func (keycloakClient *KeycloakClient) NewLdapMsadLdsUserAccountControlMapper(ldapMsadLdsUserAccountControlMapper *LdapMsadLdsUserAccountControlMapper) error

func (*KeycloakClient) NewLdapMsadUserAccountControlMapper

func (keycloakClient *KeycloakClient) NewLdapMsadUserAccountControlMapper(ldapMsadUserAccountControlMapper *LdapMsadUserAccountControlMapper) error

func (*KeycloakClient) NewLdapRoleMapper

func (keycloakClient *KeycloakClient) NewLdapRoleMapper(ldapRoleMapper *LdapRoleMapper) error

func (*KeycloakClient) NewLdapUserAttributeMapper

func (keycloakClient *KeycloakClient) NewLdapUserAttributeMapper(ldapUserAttributeMapper *LdapUserAttributeMapper) error

func (*KeycloakClient) NewLdapUserFederation

func (keycloakClient *KeycloakClient) NewLdapUserFederation(ldapUserFederation *LdapUserFederation) error

func (*KeycloakClient) NewOpenIdAudienceProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdAudienceProtocolMapper(mapper *OpenIdAudienceProtocolMapper) error

func (*KeycloakClient) NewOpenIdFullNameProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdFullNameProtocolMapper(mapper *OpenIdFullNameProtocolMapper) error

func (*KeycloakClient) NewOpenIdGroupMembershipProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdGroupMembershipProtocolMapper(mapper *OpenIdGroupMembershipProtocolMapper) error

func (*KeycloakClient) NewOpenIdHardcodedClaimProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdHardcodedClaimProtocolMapper(mapper *OpenIdHardcodedClaimProtocolMapper) error

func (*KeycloakClient) NewOpenIdHardcodedRoleProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdHardcodedRoleProtocolMapper(mapper *OpenIdHardcodedRoleProtocolMapper) error

func (*KeycloakClient) NewOpenIdScriptProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdScriptProtocolMapper(mapper *OpenIdScriptProtocolMapper) error

func (*KeycloakClient) NewOpenIdUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdUserAttributeProtocolMapper(mapper *OpenIdUserAttributeProtocolMapper) error

func (*KeycloakClient) NewOpenIdUserClientRoleProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdUserClientRoleProtocolMapper(mapper *OpenIdUserClientRoleProtocolMapper) error

func (*KeycloakClient) NewOpenIdUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdUserPropertyProtocolMapper(mapper *OpenIdUserPropertyProtocolMapper) error

func (*KeycloakClient) NewOpenIdUserRealmRoleProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdUserRealmRoleProtocolMapper(mapper *OpenIdUserRealmRoleProtocolMapper) error

func (*KeycloakClient) NewOpenIdUserSessionNoteProtocolMapper

func (keycloakClient *KeycloakClient) NewOpenIdUserSessionNoteProtocolMapper(mapper *OpenIdUserSessionNoteProtocolMapper) error

func (*KeycloakClient) NewOpenidClient

func (keycloakClient *KeycloakClient) NewOpenidClient(client *OpenidClient) error

func (*KeycloakClient) NewOpenidClientAuthorizationAggregatePolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationAggregatePolicy(policy *OpenidClientAuthorizationAggregatePolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationClientPolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationClientPolicy(policy *OpenidClientAuthorizationClientPolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationGroupPolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationGroupPolicy(policy *OpenidClientAuthorizationGroupPolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationJSPolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationJSPolicy(policy *OpenidClientAuthorizationJSPolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationPermission

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationPermission(permission *OpenidClientAuthorizationPermission) error

func (*KeycloakClient) NewOpenidClientAuthorizationResource

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationResource(resource *OpenidClientAuthorizationResource) error

func (*KeycloakClient) NewOpenidClientAuthorizationRolePolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationRolePolicy(policy *OpenidClientAuthorizationRolePolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationScope

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationScope(scope *OpenidClientAuthorizationScope) error

func (*KeycloakClient) NewOpenidClientAuthorizationTimePolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationTimePolicy(policy *OpenidClientAuthorizationTimePolicy) error

func (*KeycloakClient) NewOpenidClientAuthorizationUserPolicy

func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationUserPolicy(policy *OpenidClientAuthorizationUserPolicy) error

func (*KeycloakClient) NewOpenidClientScope

func (keycloakClient *KeycloakClient) NewOpenidClientScope(clientScope *OpenidClientScope) error

func (*KeycloakClient) NewOpenidClientServiceAccountRealmRole

func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRealmRole(serviceAccountRole *OpenidClientServiceAccountRealmRole) error

func (*KeycloakClient) NewOpenidClientServiceAccountRole

func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRole(serviceAccountRole *OpenidClientServiceAccountRole) error

func (*KeycloakClient) NewRealm

func (keycloakClient *KeycloakClient) NewRealm(realm *Realm) error

func (*KeycloakClient) NewSamlClient

func (keycloakClient *KeycloakClient) NewSamlClient(client *SamlClient) error

func (*KeycloakClient) NewSamlClientScope

func (keycloakClient *KeycloakClient) NewSamlClientScope(clientScope *SamlClientScope) error

func (*KeycloakClient) NewSamlScriptProtocolMapper

func (keycloakClient *KeycloakClient) NewSamlScriptProtocolMapper(mapper *SamlScriptProtocolMapper) error

func (*KeycloakClient) NewSamlUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) NewSamlUserAttributeProtocolMapper(mapper *SamlUserAttributeProtocolMapper) error

func (*KeycloakClient) NewSamlUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) NewSamlUserPropertyProtocolMapper(mapper *SamlUserPropertyProtocolMapper) error

func (*KeycloakClient) NewUser

func (keycloakClient *KeycloakClient) NewUser(user *User) error

func (*KeycloakClient) PutDefaultGroup

func (keycloakClient *KeycloakClient) PutDefaultGroup(realmName, groupId string) error

PutDefaultGroup will PUT a new group ID to the realm default groups. This is effectively an "upsert".

func (*KeycloakClient) RaiseAuthenticationExecutionPriority

func (keycloakClient *KeycloakClient) RaiseAuthenticationExecutionPriority(realmId, id string) error

func (*KeycloakClient) RaiseAuthenticationSubFlowPriority

func (keycloakClient *KeycloakClient) RaiseAuthenticationSubFlowPriority(realmId, parentFlowAlias, id string) error

func (*KeycloakClient) RegisterRequiredAction

func (keycloakClient *KeycloakClient) RegisterRequiredAction(requiredAction *RequiredAction) error

func (*KeycloakClient) RemoveClientRolesFromGroup

func (keycloakClient *KeycloakClient) RemoveClientRolesFromGroup(realmId, groupId, clientId string, roles []*Role) error

func (*KeycloakClient) RemoveClientRolesFromUser

func (keycloakClient *KeycloakClient) RemoveClientRolesFromUser(realmId, userId, clientId string, roles []*Role) error

func (*KeycloakClient) RemoveCompositesFromRole

func (keycloakClient *KeycloakClient) RemoveCompositesFromRole(role *Role, compositeRoles []*Role) error

func (*KeycloakClient) RemoveRealmRolesFromGroup

func (keycloakClient *KeycloakClient) RemoveRealmRolesFromGroup(realmId, groupId string, roles []*Role) error

func (*KeycloakClient) RemoveRealmRolesFromUser

func (keycloakClient *KeycloakClient) RemoveRealmRolesFromUser(realmId, userId string, roles []*Role) error

func (*KeycloakClient) RemoveUserFromGroup

func (keycloakClient *KeycloakClient) RemoveUserFromGroup(user *User, groupId string) error

func (*KeycloakClient) RemoveUserFromGroups

func (keycloakClient *KeycloakClient) RemoveUserFromGroups(groupIds []string, userId string, realmId string) error

func (*KeycloakClient) RemoveUsersFromGroup

func (keycloakClient *KeycloakClient) RemoveUsersFromGroup(realmId, groupId string, usernames []interface{}) error

func (*KeycloakClient) ResetUserPassword

func (keycloakClient *KeycloakClient) ResetUserPassword(realmId, userId string, newPassword string, isTemporary bool) error

func (*KeycloakClient) UpdateAuthenticationBindings

func (keycloakClient *KeycloakClient) UpdateAuthenticationBindings(authenticationBindings *AuthenticationBindings) error

func (*KeycloakClient) UpdateAuthenticationExecution

func (keycloakClient *KeycloakClient) UpdateAuthenticationExecution(execution *AuthenticationExecution) error

func (*KeycloakClient) UpdateAuthenticationExecutionRequirement

func (keycloakClient *KeycloakClient) UpdateAuthenticationExecutionRequirement(executionRequirementUpdate *authenticationExecutionRequirementUpdate) error

func (*KeycloakClient) UpdateAuthenticationFlow

func (keycloakClient *KeycloakClient) UpdateAuthenticationFlow(authenticationFlow *AuthenticationFlow) error

func (*KeycloakClient) UpdateAuthenticationSubFlow

func (keycloakClient *KeycloakClient) UpdateAuthenticationSubFlow(authenticationSubFlow *AuthenticationSubFlow) error

func (*KeycloakClient) UpdateComponent added in v1.0.4

func (keycloakClient *KeycloakClient) UpdateComponent(realm string, component Component) error

func (*KeycloakClient) UpdateCustomUserFederation

func (keycloakClient *KeycloakClient) UpdateCustomUserFederation(customUserFederation *CustomUserFederation) error

func (*KeycloakClient) UpdateDefaultRoles added in v1.0.4

func (keycloakClient *KeycloakClient) UpdateDefaultRoles(defaultRoles *DefaultRoles) error

func (*KeycloakClient) UpdateGenericClientProtocolMapper

func (keycloakClient *KeycloakClient) UpdateGenericClientProtocolMapper(genericClientProtocolMapper *GenericClientProtocolMapper) error

func (*KeycloakClient) UpdateGroup

func (keycloakClient *KeycloakClient) UpdateGroup(group *Group) error

func (*KeycloakClient) UpdateIdentityProvider

func (keycloakClient *KeycloakClient) UpdateIdentityProvider(identityProvider *IdentityProvider) error

func (*KeycloakClient) UpdateIdentityProviderMapper

func (keycloakClient *KeycloakClient) UpdateIdentityProviderMapper(identityProviderMapper *IdentityProviderMapper) error

func (*KeycloakClient) UpdateLdapFullNameMapper

func (keycloakClient *KeycloakClient) UpdateLdapFullNameMapper(ldapFullNameMapper *LdapFullNameMapper) error

func (*KeycloakClient) UpdateLdapGroupMapper

func (keycloakClient *KeycloakClient) UpdateLdapGroupMapper(ldapGroupMapper *LdapGroupMapper) error

func (*KeycloakClient) UpdateLdapHardcodedGroupMapper

func (keycloakClient *KeycloakClient) UpdateLdapHardcodedGroupMapper(ldapMapper *LdapHardcodedGroupMapper) error

func (*KeycloakClient) UpdateLdapHardcodedRoleMapper

func (keycloakClient *KeycloakClient) UpdateLdapHardcodedRoleMapper(ldapMapper *LdapHardcodedRoleMapper) error

func (*KeycloakClient) UpdateLdapMsadLdsUserAccountControlMapper

func (keycloakClient *KeycloakClient) UpdateLdapMsadLdsUserAccountControlMapper(ldapMsadLdsUserAccountControlMapper *LdapMsadLdsUserAccountControlMapper) error

func (*KeycloakClient) UpdateLdapMsadUserAccountControlMapper

func (keycloakClient *KeycloakClient) UpdateLdapMsadUserAccountControlMapper(ldapMsadUserAccountControlMapper *LdapMsadUserAccountControlMapper) error

func (*KeycloakClient) UpdateLdapRoleMapper

func (keycloakClient *KeycloakClient) UpdateLdapRoleMapper(ldapRoleMapper *LdapRoleMapper) error

func (*KeycloakClient) UpdateLdapUserAttributeMapper

func (keycloakClient *KeycloakClient) UpdateLdapUserAttributeMapper(ldapUserAttributeMapper *LdapUserAttributeMapper) error

func (*KeycloakClient) UpdateLdapUserFederation

func (keycloakClient *KeycloakClient) UpdateLdapUserFederation(ldapUserFederation *LdapUserFederation) error

func (*KeycloakClient) UpdateOpenIdAudienceProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdAudienceProtocolMapper(mapper *OpenIdAudienceProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdFullNameProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdFullNameProtocolMapper(mapper *OpenIdFullNameProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdGroupMembershipProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdGroupMembershipProtocolMapper(mapper *OpenIdGroupMembershipProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdHardcodedClaimProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedClaimProtocolMapper(mapper *OpenIdHardcodedClaimProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdHardcodedRoleProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedRoleProtocolMapper(mapper *OpenIdHardcodedRoleProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdScriptProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdScriptProtocolMapper(mapper *OpenIdScriptProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdUserAttributeProtocolMapper(mapper *OpenIdUserAttributeProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdUserClientRoleProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdUserClientRoleProtocolMapper(mapper *OpenIdUserClientRoleProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdUserPropertyProtocolMapper(mapper *OpenIdUserPropertyProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdUserRealmRoleProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdUserRealmRoleProtocolMapper(mapper *OpenIdUserRealmRoleProtocolMapper) error

func (*KeycloakClient) UpdateOpenIdUserSessionNoteProtocolMapper

func (keycloakClient *KeycloakClient) UpdateOpenIdUserSessionNoteProtocolMapper(mapper *OpenIdUserSessionNoteProtocolMapper) error

func (*KeycloakClient) UpdateOpenidClient

func (keycloakClient *KeycloakClient) UpdateOpenidClient(client *OpenidClient) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationAggregatePolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationAggregatePolicy(policy *OpenidClientAuthorizationAggregatePolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationClientPolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationClientPolicy(policy *OpenidClientAuthorizationClientPolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationGroupPolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationGroupPolicy(policy *OpenidClientAuthorizationGroupPolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationJSPolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationJSPolicy(policy *OpenidClientAuthorizationJSPolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationPermission

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationPermission(permission *OpenidClientAuthorizationPermission) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationResource

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationResource(resource *OpenidClientAuthorizationResource) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationRolePolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationRolePolicy(policy *OpenidClientAuthorizationRolePolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationScope

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationScope(scope *OpenidClientAuthorizationScope) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationTimePolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationTimePolicy(policy *OpenidClientAuthorizationTimePolicy) error

func (*KeycloakClient) UpdateOpenidClientAuthorizationUserPolicy

func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationUserPolicy(policy *OpenidClientAuthorizationUserPolicy) error

func (*KeycloakClient) UpdateOpenidClientScope

func (keycloakClient *KeycloakClient) UpdateOpenidClientScope(clientScope *OpenidClientScope) error

func (*KeycloakClient) UpdateRealm

func (keycloakClient *KeycloakClient) UpdateRealm(realm *Realm) error

func (*KeycloakClient) UpdateRealmEventsConfig

func (keycloakClient *KeycloakClient) UpdateRealmEventsConfig(realmId string, realmEventsConfig *RealmEventsConfig) error

func (*KeycloakClient) UpdateRequiredAction

func (keycloakClient *KeycloakClient) UpdateRequiredAction(requiredAction *RequiredAction) error

func (*KeycloakClient) UpdateRole

func (keycloakClient *KeycloakClient) UpdateRole(role *Role) error

func (*KeycloakClient) UpdateSamlClient

func (keycloakClient *KeycloakClient) UpdateSamlClient(client *SamlClient) error

func (*KeycloakClient) UpdateSamlClientScope

func (keycloakClient *KeycloakClient) UpdateSamlClientScope(clientScope *SamlClientScope) error

func (*KeycloakClient) UpdateSamlScriptProtocolMapper

func (keycloakClient *KeycloakClient) UpdateSamlScriptProtocolMapper(mapper *SamlScriptProtocolMapper) error

func (*KeycloakClient) UpdateSamlUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) UpdateSamlUserAttributeProtocolMapper(mapper *SamlUserAttributeProtocolMapper) error

func (*KeycloakClient) UpdateSamlUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) UpdateSamlUserPropertyProtocolMapper(mapper *SamlUserPropertyProtocolMapper) error

func (*KeycloakClient) UpdateUser

func (keycloakClient *KeycloakClient) UpdateUser(user *User) error

func (*KeycloakClient) ValidateCustomUserFederation

func (keycloakClient *KeycloakClient) ValidateCustomUserFederation(custom *CustomUserFederation) error

func (*KeycloakClient) ValidateGroupMembers

func (keycloakClient *KeycloakClient) ValidateGroupMembers(usernames []interface{}) error

func (*KeycloakClient) ValidateLdapFullNameMapper

func (keycloakClient *KeycloakClient) ValidateLdapFullNameMapper(mapper *LdapFullNameMapper) error

the keycloak api client is passed in order to fetch the ldap provider for writable validation

func (*KeycloakClient) ValidateLdapGroupMapper

func (keycloakClient *KeycloakClient) ValidateLdapGroupMapper(ldapGroupMapper *LdapGroupMapper) error

func (*KeycloakClient) ValidateLdapHardcodedGroupMapper

func (keycloakClient *KeycloakClient) ValidateLdapHardcodedGroupMapper(ldapMapper *LdapHardcodedGroupMapper) error

func (*KeycloakClient) ValidateLdapHardcodedRoleMapper

func (keycloakClient *KeycloakClient) ValidateLdapHardcodedRoleMapper(ldapMapper *LdapHardcodedRoleMapper) error

func (*KeycloakClient) ValidateLdapRoleMapper

func (keycloakClient *KeycloakClient) ValidateLdapRoleMapper(ldapRoleMapper *LdapRoleMapper) error

func (*KeycloakClient) ValidateLdapUserFederation

func (keycloakClient *KeycloakClient) ValidateLdapUserFederation(ldap *LdapUserFederation) error

func (*KeycloakClient) ValidateOpenIdAudienceProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdAudienceProtocolMapper(mapper *OpenIdAudienceProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdFullNameProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdFullNameProtocolMapper(mapper *OpenIdFullNameProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdGroupMembershipProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdGroupMembershipProtocolMapper(mapper *OpenIdGroupMembershipProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdHardcodedClaimProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedClaimProtocolMapper(mapper *OpenIdHardcodedClaimProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdHardcodedRoleProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedRoleProtocolMapper(mapper *OpenIdHardcodedRoleProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdScriptProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdScriptProtocolMapper(mapper *OpenIdScriptProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdUserAttributeProtocolMapper(mapper *OpenIdUserAttributeProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdUserClientRoleProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdUserClientRoleProtocolMapper(mapper *OpenIdUserClientRoleProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdUserRealmRoleProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdUserRealmRoleProtocolMapper(mapper *OpenIdUserRealmRoleProtocolMapper) error

func (*KeycloakClient) ValidateOpenIdUserSessionNoteProtocolMapper

func (keycloakClient *KeycloakClient) ValidateOpenIdUserSessionNoteProtocolMapper(mapper *OpenIdUserSessionNoteProtocolMapper) error

func (*KeycloakClient) ValidateOpenidClient

func (keycloakClient *KeycloakClient) ValidateOpenidClient(client *OpenidClient) error

func (*KeycloakClient) ValidateRealm

func (keycloakClient *KeycloakClient) ValidateRealm(realm *Realm) error

func (*KeycloakClient) ValidateRequiredAction

func (keycloakClient *KeycloakClient) ValidateRequiredAction(requiredAction *RequiredAction) error

func (*KeycloakClient) ValidateSamlScriptProtocolMapper

func (keycloakClient *KeycloakClient) ValidateSamlScriptProtocolMapper(mapper *SamlScriptProtocolMapper) error

func (*KeycloakClient) ValidateSamlUserAttributeProtocolMapper

func (keycloakClient *KeycloakClient) ValidateSamlUserAttributeProtocolMapper(mapper *SamlUserAttributeProtocolMapper) error

func (*KeycloakClient) ValidateSamlUserPropertyProtocolMapper

func (keycloakClient *KeycloakClient) ValidateSamlUserPropertyProtocolMapper(mapper *SamlUserPropertyProtocolMapper) error

func (*KeycloakClient) VersionIsGreaterThanOrEqualTo

func (keycloakClient *KeycloakClient) VersionIsGreaterThanOrEqualTo(versionString Version) bool

type Keys

type Keys struct {
	Keys []Key `json:"keys"`
}

type LdapFullNameMapper

type LdapFullNameMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string

	LdapFullNameAttribute string
	ReadOnly              bool
	WriteOnly             bool
}

type LdapGroupMapper

type LdapGroupMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string

	LdapGroupsDn                string
	GroupNameLdapAttribute      string
	GroupObjectClasses          []string
	PreserveGroupInheritance    bool
	IgnoreMissingGroups         bool
	MembershipLdapAttribute     string
	MembershipAttributeType     string
	MembershipUserLdapAttribute string
	GroupsLdapFilter            string
	Mode                        string
	UserRolesRetrieveStrategy   string
	MemberofLdapAttribute       string
	MappedGroupAttributes       []string

	DropNonExistingGroupsDuringSync bool

	GroupsPath string
}

type LdapHardcodedGroupMapper

type LdapHardcodedGroupMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string
	Group                string
}

type LdapHardcodedRoleMapper

type LdapHardcodedRoleMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string
	Role                 string
}

type LdapMsadLdsUserAccountControlMapper

type LdapMsadLdsUserAccountControlMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string
}

type LdapMsadUserAccountControlMapper

type LdapMsadUserAccountControlMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string

	LdapPasswordPolicyHintsEnabled bool
}

type LdapRoleMapper

type LdapRoleMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string

	LdapRolesDn                 string
	RoleNameLdapAttribute       string
	RoleObjectClasses           []string
	MembershipLdapAttribute     string
	MembershipAttributeType     string
	MembershipUserLdapAttribute string
	RolesLdapFilter             string
	Mode                        string
	UserRolesRetrieveStrategy   string
	MemberofLdapAttribute       string
	UseRealmRolesMapping        bool
	ClientId                    string
}

type LdapUserAttributeMapper

type LdapUserAttributeMapper struct {
	Id                   string
	Name                 string
	RealmId              string
	LdapUserFederationId string

	LdapAttribute           string
	IsMandatoryInLdap       bool
	ReadOnly                bool
	AlwaysReadValueFromLdap bool
	UserModelAttribute      string
}

type LdapUserFederation

type LdapUserFederation struct {
	Id      string
	Name    string
	RealmId string

	Enabled  bool
	Priority int

	ImportEnabled     bool
	EditMode          string // can be "READ_ONLY", "WRITABLE", or "UNSYNCED"
	SyncRegistrations bool   // I think this field controls whether or not BatchSizeForSync, FullSyncPeriod, and ChangedSyncPeriod are needed

	Vendor                 string // can be "other", "edirectory", "ad", "rhds", or "tivoli". honestly I don't think this field actually does anything
	UsernameLDAPAttribute  string
	RdnLDAPAttribute       string
	UuidLDAPAttribute      string
	UserObjectClasses      []string // api expects comma + space separated for some reason
	ConnectionUrl          string
	UsersDn                string
	BindDn                 string
	BindCredential         string
	CustomUserSearchFilter string // must start with '(' and end with ')'
	SearchScope            string // api expects "1" or "2", but that means "One Level" or "Subtree"

	ValidatePasswordPolicy bool
	TrustEmail             bool
	UseTruststoreSpi       string // can be "ldapsOnly", "always", or "never"
	ConnectionTimeout      string // duration string (ex: 1h30m)
	ReadTimeout            string // duration string (ex: 1h30m)
	Pagination             bool

	ConnectionPooling               bool
	ConnectionPoolingAuthentication *string // "none", "simple"
	ConnectionPoolDebugLevel        *string // "fine", "all"
	ConnectionPoolInitialSize       *int
	ConnectionPoolMaximumSize       *int
	ConnectionPoolPreferredSize     *int
	ConnectionPoolProtocol          *string // "plain", "ssl"
	ConnectionPoolTimeout           *int

	ServerPrincipal                      string
	UseKerberosForPasswordAuthentication bool
	AllowKerberosAuthentication          bool
	KeyTab                               string
	KerberosRealm                        string

	BatchSizeForSync  int
	FullSyncPeriod    int // either a number, in milliseconds, or -1 if full sync is disabled
	ChangedSyncPeriod int // either a number, in milliseconds, or -1 if changed sync is disabled

	CachePolicy    string
	MaxLifespan    string // duration string (ex: 1h30m)
	EvictionDay    *int
	EvictionHour   *int
	EvictionMinute *int
}

type OpenIdAudienceProtocolMapper

type OpenIdAudienceProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool

	IncludedClientAudience string
	IncludedCustomAudience string
}

type OpenIdFullNameProtocolMapper

type OpenIdFullNameProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool
}

type OpenIdGroupMembershipProtocolMapper

type OpenIdGroupMembershipProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserinfo    bool

	ClaimName string
	FullPath  bool
}

type OpenIdHardcodedClaimProtocolMapper

type OpenIdHardcodedClaimProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	ClaimName      string
	ClaimValue     string
	ClaimValueType string
}

type OpenIdHardcodedRoleProtocolMapper

type OpenIdHardcodedRoleProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	RoleId string
}

type OpenIdScriptProtocolMapper

type OpenIdScriptProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	Script         string
	ClaimName      string
	ClaimValueType string

	Multivalued bool // indicates whether is this an array of attributes or a single attribute
}

type OpenIdUserAttributeProtocolMapper

type OpenIdUserAttributeProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	UserAttribute  string
	ClaimName      string
	ClaimValueType string

	Multivalued              bool // indicates whether is this an array of attributes or a single attribute
	AggregateAttributeValues bool
}

type OpenIdUserClientRoleProtocolMapper

type OpenIdUserClientRoleProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	ClaimName               string
	ClaimValueType          string
	Multivalued             bool
	ClientIdForRoleMappings string
	ClientRolePrefix        string
}

type OpenIdUserPropertyProtocolMapper

type OpenIdUserPropertyProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	UserProperty   string
	ClaimName      string
	ClaimValueType string
}

func (*OpenIdUserPropertyProtocolMapper) Validate

func (mapper *OpenIdUserPropertyProtocolMapper) Validate(keycloakClient *KeycloakClient) error

type OpenIdUserRealmRoleProtocolMapper

type OpenIdUserRealmRoleProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool
	AddToUserInfo    bool

	RealmRolePrefix string
	Multivalued     bool
	ClaimName       string
	ClaimValueType  string
}

type OpenIdUserSessionNoteProtocolMapper

type OpenIdUserSessionNoteProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	AddToIdToken     bool
	AddToAccessToken bool

	ClaimName       string
	ClaimValueType  string
	UserSessionNote string
}

type OpenidAuthenticationFlowBindingOverrides

type OpenidAuthenticationFlowBindingOverrides struct {
	BrowserId     string `json:"browser"`
	DirectGrantId string `json:"direct_grant"`
}

type OpenidClient

type OpenidClient struct {
	Id                                 string                                   `json:"id,omitempty"`
	ClientId                           string                                   `json:"clientId"`
	RealmId                            string                                   `json:"-"`
	Name                               string                                   `json:"name"`
	Protocol                           string                                   `json:"protocol"`                // always openid-connect for this resource
	ClientAuthenticatorType            string                                   `json:"clientAuthenticatorType"` // always client-secret for now, don't have a need for JWT here
	ClientSecret                       string                                   `json:"secret,omitempty"`
	Enabled                            bool                                     `json:"enabled"`
	Description                        string                                   `json:"description"`
	PublicClient                       bool                                     `json:"publicClient"`
	BearerOnly                         bool                                     `json:"bearerOnly"`
	StandardFlowEnabled                bool                                     `json:"standardFlowEnabled"`
	ImplicitFlowEnabled                bool                                     `json:"implicitFlowEnabled"`
	DirectAccessGrantsEnabled          bool                                     `json:"directAccessGrantsEnabled"`
	ServiceAccountsEnabled             bool                                     `json:"serviceAccountsEnabled"`
	AuthorizationServicesEnabled       bool                                     `json:"authorizationServicesEnabled"`
	ValidRedirectUris                  []string                                 `json:"redirectUris"`
	WebOrigins                         []string                                 `json:"webOrigins"`
	AdminUrl                           string                                   `json:"adminUrl"`
	BaseUrl                            string                                   `json:"baseUrl"`
	RootUrl                            *string                                  `json:"rootUrl,omitempty"`
	FullScopeAllowed                   bool                                     `json:"fullScopeAllowed"`
	Attributes                         OpenidClientAttributes                   `json:"attributes"`
	AuthorizationSettings              *OpenidClientAuthorizationSettings       `json:"authorizationSettings,omitempty"`
	ConsentRequired                    bool                                     `json:"consentRequired"`
	AuthenticationFlowBindingOverrides OpenidAuthenticationFlowBindingOverrides `json:"authenticationFlowBindingOverrides,omitempty"`
}

type OpenidClientAttributes

type OpenidClientAttributes struct {
	PkceCodeChallengeMethod             string             `json:"pkce.code.challenge.method"`
	ExcludeSessionStateFromAuthResponse KeycloakBoolQuoted `json:"exclude.session.state.from.auth.response"`
	AccessTokenLifespan                 string             `json:"access.token.lifespan"`
	LoginTheme                          string             `json:"login_theme"`
	ClientOfflineSessionIdleTimeout     string             `json:"client.offline.session.idle.timeout,omitempty"`
	ClientOfflineSessionMaxLifespan     string             `json:"client.offline.session.max.lifespan,omitempty"`
	ClientSessionIdleTimeout            string             `json:"client.session.idle.timeout,omitempty"`
	ClientSessionMaxLifespan            string             `json:"client.session.max.lifespan,omitempty"`
}

type OpenidClientAuthorizationAggregatePolicy

type OpenidClientAuthorizationAggregatePolicy struct {
	Id               string   `json:"id,omitempty"`
	RealmId          string   `json:"-"`
	ResourceServerId string   `json:"-"`
	Name             string   `json:"name"`
	DecisionStrategy string   `json:"decisionStrategy"`
	Logic            string   `json:"logic"`
	Policies         []string `json:"policies"`
	Type             string   `json:"type"`
	Description      string   `json:"description"`
}

type OpenidClientAuthorizationClientPolicy

type OpenidClientAuthorizationClientPolicy struct {
	Id               string   `json:"id,omitempty"`
	RealmId          string   `json:"-"`
	ResourceServerId string   `json:"-"`
	Name             string   `json:"name"`
	DecisionStrategy string   `json:"decisionStrategy"`
	Logic            string   `json:"logic"`
	Type             string   `json:"type"`
	Clients          []string `json:"clients"`
	Description      string   `json:"description"`
}

type OpenidClientAuthorizationGroup

type OpenidClientAuthorizationGroup struct {
	Id             string `json:"id,omitempty"`
	Path           string `json:"path,omitempty"`
	ExtendChildren bool   `json:"extendChildren,omitempty"`
}

type OpenidClientAuthorizationGroupPolicy

type OpenidClientAuthorizationGroupPolicy struct {
	Id               string                           `json:"id,omitempty"`
	RealmId          string                           `json:"-"`
	ResourceServerId string                           `json:"-"`
	Name             string                           `json:"name"`
	DecisionStrategy string                           `json:"decisionStrategy"`
	Logic            string                           `json:"logic"`
	Type             string                           `json:"type"`
	GroupsClaim      string                           `json:"groupsClaim"`
	Groups           []OpenidClientAuthorizationGroup `json:"groups,omitempty"`
	Description      string                           `json:"description"`
}

type OpenidClientAuthorizationJSPolicy

type OpenidClientAuthorizationJSPolicy struct {
	Id               string `json:"id,omitempty"`
	RealmId          string `json:"-"`
	ResourceServerId string `json:"-"`
	Name             string `json:"name"`
	DecisionStrategy string `json:"decisionStrategy"`
	Logic            string `json:"logic"`
	Type             string `json:"type"`
	Code             string `json:"code"`
	Description      string `json:"description"`
}

type OpenidClientAuthorizationPermission

type OpenidClientAuthorizationPermission struct {
	Id               string   `json:"id,omitempty"`
	RealmId          string   `json:"-"`
	ResourceServerId string   `json:"-"`
	Name             string   `json:"name"`
	Description      string   `json:"description"`
	DecisionStrategy string   `json:"decisionStrategy"`
	Policies         []string `json:"policies"`
	Resources        []string `json:"resources"`
	Scopes           []string `json:"scopes"`
	Type             string   `json:"type"`
}

type OpenidClientAuthorizationPolicy

type OpenidClientAuthorizationPolicy struct {
	Id               string   `json:"id,omitempty"`
	RealmId          string   `json:"-"`
	ResourceServerId string   `json:"-"`
	Name             string   `json:"name"`
	Owner            string   `json:"owner"`
	DecisionStrategy string   `json:"decisionStrategy"`
	Logic            string   `json:"logic"`
	Policies         []string `json:"policies"`
	Resources        []string `json:"resources"`
	Scopes           []string `json:"scopes"`
	Type             string   `json:"type"`
}

type OpenidClientAuthorizationResource

type OpenidClientAuthorizationResource struct {
	ResourceServerId   string                           `json:"-"`
	RealmId            string                           `json:"-"`
	Id                 string                           `json:"_id,omitempty"`
	DisplayName        string                           `json:"displayName"`
	Name               string                           `json:"name"`
	Uris               []string                         `json:"uris"`
	IconUri            string                           `json:"icon_uri"`
	OwnerManagedAccess bool                             `json:"ownerManagedAccess"`
	Scopes             []OpenidClientAuthorizationScope `json:"scopes"`
	Type               string                           `json:"type"`
	Attributes         map[string][]string              `json:"attributes"`
}

type OpenidClientAuthorizationRole

type OpenidClientAuthorizationRole struct {
	Id       string `json:"id,omitempty"`
	Required bool   `json:"required"`
}

type OpenidClientAuthorizationRolePolicy

type OpenidClientAuthorizationRolePolicy struct {
	Id               string                          `json:"id,omitempty"`
	RealmId          string                          `json:"-"`
	ResourceServerId string                          `json:"-"`
	Name             string                          `json:"name"`
	DecisionStrategy string                          `json:"decisionStrategy"`
	Logic            string                          `json:"logic"`
	Type             string                          `json:"type"`
	Roles            []OpenidClientAuthorizationRole `json:"roles,omitempty"`
	Description      string                          `json:"description"`
}

type OpenidClientAuthorizationScope

type OpenidClientAuthorizationScope struct {
	Id               string `json:"id,omitempty"`
	RealmId          string `json:"-"`
	ResourceServerId string `json:"-"`
	Name             string `json:"name"`
	DisplayName      string `json:"displayName"`
	IconUri          string `json:"iconUri"`
}

type OpenidClientAuthorizationSettings

type OpenidClientAuthorizationSettings struct {
	PolicyEnforcementMode         string `json:"policyEnforcementMode,omitempty"`
	DecisionStrategy              string `json:"decisionStrategy,omitempty"`
	AllowRemoteResourceManagement bool   `json:"allowRemoteResourceManagement,omitempty"`
	KeepDefaults                  bool   `json:"-"`
}

type OpenidClientAuthorizationTimePolicy

type OpenidClientAuthorizationTimePolicy struct {
	Id               string `json:"id,omitempty"`
	RealmId          string `json:"-"`
	ResourceServerId string `json:"-"`
	Name             string `json:"name"`
	DecisionStrategy string `json:"decisionStrategy"`
	Logic            string `json:"logic"`
	Type             string `json:"type"`
	NotBefore        string `json:"notBefore"`
	NotOnOrAfter     string `json:"notOnOrAfter"`
	DayMonth         string `json:"dayMonth"`
	DayMonthEnd      string `json:"dayMonthEnd"`
	Month            string `json:"month"`
	MonthEnd         string `json:"monthEnd"`
	Year             string `json:"year"`
	YearEnd          string `json:"yearEnd"`
	Hour             string `json:"hour"`
	HourEnd          string `json:"hourEnd"`
	Minute           string `json:"minute"`
	MinuteEnd        string `json:"minuteEnd"`
	Description      string `json:"description"`
}

type OpenidClientAuthorizationUserPolicy

type OpenidClientAuthorizationUserPolicy struct {
	Id               string   `json:"id,omitempty"`
	RealmId          string   `json:"-"`
	ResourceServerId string   `json:"-"`
	Name             string   `json:"name"`
	DecisionStrategy string   `json:"decisionStrategy"`
	Logic            string   `json:"logic"`
	Type             string   `json:"type"`
	Users            []string `json:"users"`
	Description      string   `json:"description"`
}

type OpenidClientPermissions

type OpenidClientPermissions struct {
	RealmId          string                 `json:"-"`
	ClientId         string                 `json:"-"`
	Enabled          bool                   `json:"enabled"`
	Resource         string                 `json:"resource"`
	ScopePermissions map[string]interface{} `json:"scopePermissions"`
}

type OpenidClientPermissionsInput

type OpenidClientPermissionsInput struct {
	Enabled bool `json:"enabled"`
}

type OpenidClientRole

type OpenidClientRole struct {
	Id                 string `json:"id"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	ScopeParamRequired bool   `json:"scopeParamRequired"`
	ClientRole         bool   `json:"clientRole"`
	ContainerId        string `json:"ContainerId"`
}

type OpenidClientScope

type OpenidClientScope struct {
	Id          string `json:"id,omitempty"`
	RealmId     string `json:"-"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Protocol    string `json:"protocol"`
	Attributes  struct {
		DisplayOnConsentScreen KeycloakBoolQuoted `json:"display.on.consent.screen"` // boolean in string form
		ConsentScreenText      string             `json:"consent.screen.text"`
		GuiOrder               string             `json:"gui.order"`
		IncludeInTokenScope    string             `json:"include.in.token.scope"` // boolean in string form but can be null/empty
	} `json:"attributes"`
}

type OpenidClientScopeFilterFunc

type OpenidClientScopeFilterFunc func(*OpenidClientScope) bool

type OpenidClientSecret

type OpenidClientSecret struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type OpenidClientServiceAccountRealmRole

type OpenidClientServiceAccountRealmRole struct {
	Id                   string `json:"id"`
	RealmId              string `json:"-"`
	ServiceAccountUserId string `json:"-"`
	Name                 string `json:"name,omitempty"`
	Description          string `json:"description"`
}

type OpenidClientServiceAccountRole

type OpenidClientServiceAccountRole struct {
	Id                   string `json:"id"`
	RealmId              string `json:"-"`
	ServiceAccountUserId string `json:"-"`
	Name                 string `json:"name,omitempty"`
	ClientRole           bool   `json:"clientRole"`
	Composite            bool   `json:"composite"`
	ContainerId          string `json:"containerId"`
	Description          string `json:"description"`
}

type OpenidClientWithGenericClientProtocolMappers

type OpenidClientWithGenericClientProtocolMappers struct {
	OpenidClient
	ProtocolMappers []*GenericClientProtocolMapper
}

type PasswordCredentials

type PasswordCredentials struct {
	Value     string `json:"value"`
	Type      string `json:"type"`
	Temporary bool   `json:"temporary"`
}

type Provider

type Provider struct {
}

type ProviderType

type ProviderType struct {
	Internal  bool                `json:"internal"`
	Providers map[string]Provider `json:"providers"`
}

type Realm

type Realm struct {
	Id                string `json:"id,omitempty"`
	Realm             string `json:"realm"`
	Enabled           bool   `json:"enabled"`
	DisplayName       string `json:"displayName"`
	DisplayNameHtml   string `json:"displayNameHtml"`
	UserManagedAccess bool   `json:"userManagedAccessAllowed"`

	// Login Config
	RegistrationAllowed         bool   `json:"registrationAllowed"`
	RegistrationEmailAsUsername bool   `json:"registrationEmailAsUsername"`
	EditUsernameAllowed         bool   `json:"editUsernameAllowed"`
	ResetPasswordAllowed        bool   `json:"resetPasswordAllowed"`
	RememberMe                  bool   `json:"rememberMe"`
	VerifyEmail                 bool   `json:"verifyEmail"`
	LoginWithEmailAllowed       bool   `json:"loginWithEmailAllowed"`
	DuplicateEmailsAllowed      bool   `json:"duplicateEmailsAllowed"`
	SslRequired                 string `json:"sslRequired,omitempty"`

	//SMTP Server
	SmtpServer SmtpServer `json:"smtpServer"`

	// Themes
	LoginTheme   string `json:"loginTheme,omitempty"`
	AccountTheme string `json:"accountTheme,omitempty"`
	AdminTheme   string `json:"adminTheme,omitempty"`
	EmailTheme   string `json:"emailTheme,omitempty"`

	// Tokens
	DefaultSignatureAlgorithm           string `json:"defaultSignatureAlgorithm"`
	RevokeRefreshToken                  bool   `json:"revokeRefreshToken"`
	RefreshTokenMaxReuse                int    `json:"refreshTokenMaxReuse"`
	SsoSessionIdleTimeout               int    `json:"ssoSessionIdleTimeout,omitempty"`
	SsoSessionMaxLifespan               int    `json:"ssoSessionMaxLifespan,omitempty"`
	SsoSessionIdleTimeoutRememberMe     int    `json:"ssoSessionIdleTimeoutRememberMe,omitempty"`
	SsoSessionMaxLifespanRememberMe     int    `json:"ssoSessionMaxLifespanRememberMe,omitempty"`
	OfflineSessionIdleTimeout           int    `json:"offlineSessionIdleTimeout,omitempty"`
	OfflineSessionMaxLifespan           int    `json:"offlineSessionMaxLifespan,omitempty"`
	OfflineSessionMaxLifespanEnabled    bool   `json:"offlineSessionMaxLifespanEnabled,omitempty"`
	AccessTokenLifespan                 int    `json:"accessTokenLifespan,omitempty"`
	AccessTokenLifespanForImplicitFlow  int    `json:"accessTokenLifespanForImplicitFlow,omitempty"`
	AccessCodeLifespan                  int    `json:"accessCodeLifespan,omitempty"`
	AccessCodeLifespanLogin             int    `json:"accessCodeLifespanLogin,omitempty"`
	AccessCodeLifespanUserAction        int    `json:"accessCodeLifespanUserAction,omitempty"`
	ActionTokenGeneratedByUserLifespan  int    `json:"actionTokenGeneratedByUserLifespan,omitempty"`
	ActionTokenGeneratedByAdminLifespan int    `json:"actionTokenGeneratedByAdminLifespan,omitempty"`

	//internationalization
	InternationalizationEnabled bool     `json:"internationalizationEnabled"`
	SupportLocales              []string `json:"supportedLocales"`
	DefaultLocale               string   `json:"defaultLocale"`

	//extra attributes of a realm
	Attributes map[string]interface{} `json:"attributes"`

	// client-scope mapping defaults
	DefaultDefaultClientScopes  []string `json:"defaultDefaultClientScopes,omitempty"`
	DefaultOptionalClientScopes []string `json:"defaultOptionalClientScopes,omitempty"`

	DefaultRoles []string `json:"defaultRoles,omitempty"`

	BrowserSecurityHeaders BrowserSecurityHeaders `json:"browserSecurityHeaders"`

	BruteForceProtected          bool `json:"bruteForceProtected"`
	PermanentLockout             bool `json:"permanentLockout"`
	FailureFactor                int  `json:"failureFactor"` //Max Login Failures
	WaitIncrementSeconds         int  `json:"waitIncrementSeconds"`
	QuickLoginCheckMilliSeconds  int  `json:"quickLoginCheckMilliSeconds"`
	MinimumQuickLoginWaitSeconds int  `json:"minimumQuickLoginWaitSeconds"`
	MaxFailureWaitSeconds        int  `json:"maxFailureWaitSeconds"` //Max Wait
	MaxDeltaTimeSeconds          int  `json:"maxDeltaTimeSeconds"`   //Failure Reset Time

	PasswordPolicy string `json:"passwordPolicy"`

	//flow bindings
	BrowserFlow              string `json:"browserFlow,omitempty"`
	RegistrationFlow         string `json:"registrationFlow,omitempty"`
	DirectGrantFlow          string `json:"directGrantFlow,omitempty"`
	ResetCredentialsFlow     string `json:"resetCredentialsFlow,omitempty"`
	ClientAuthenticationFlow string `json:"clientAuthenticationFlow,omitempty"`
	DockerAuthenticationFlow string `json:"dockerAuthenticationFlow,omitempty"`

	// WebAuthn
	WebAuthnPolicyAcceptableAaguids               []string `json:"webAuthnPolicyAcceptableAaguids"`
	WebAuthnPolicyAttestationConveyancePreference string   `json:"webAuthnPolicyAttestationConveyancePreference"`
	WebAuthnPolicyAuthenticatorAttachment         string   `json:"webAuthnPolicyAuthenticatorAttachment"`
	WebAuthnPolicyAvoidSameAuthenticatorRegister  bool     `json:"webAuthnPolicyAvoidSameAuthenticatorRegister"`
	WebAuthnPolicyCreateTimeout                   int      `json:"webAuthnPolicyCreateTimeout"`
	WebAuthnPolicyRequireResidentKey              string   `json:"webAuthnPolicyRequireResidentKey"`
	WebAuthnPolicyRpEntityName                    string   `json:"webAuthnPolicyRpEntityName"`
	WebAuthnPolicyRpId                            string   `json:"webAuthnPolicyRpId"`
	WebAuthnPolicySignatureAlgorithms             []string `json:"webAuthnPolicySignatureAlgorithms"`
	WebAuthnPolicyUserVerificationRequirement     string   `json:"webAuthnPolicyUserVerificationRequirement"`

	// WebAuthn Passwordless
	WebAuthnPolicyPasswordlessAcceptableAaguids               []string `json:"webAuthnPolicyPasswordlessAcceptableAaguids"`
	WebAuthnPolicyPasswordlessAttestationConveyancePreference string   `json:"webAuthnPolicyPasswordlessAttestationConveyancePreference"`
	WebAuthnPolicyPasswordlessAuthenticatorAttachment         string   `json:"webAuthnPolicyPasswordlessAuthenticatorAttachment"`
	WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister  bool     `json:"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister"`
	WebAuthnPolicyPasswordlessCreateTimeout                   int      `json:"webAuthnPolicyPasswordlessCreateTimeout"`
	WebAuthnPolicyPasswordlessRequireResidentKey              string   `json:"webAuthnPolicyPasswordlessRequireResidentKey"`
	WebAuthnPolicyPasswordlessRpEntityName                    string   `json:"webAuthnPolicyPasswordlessRpEntityName"`
	WebAuthnPolicyPasswordlessRpId                            string   `json:"webAuthnPolicyPasswordlessRpId"`
	WebAuthnPolicyPasswordlessSignatureAlgorithms             []string `json:"webAuthnPolicyPasswordlessSignatureAlgorithms"`
	WebAuthnPolicyPasswordlessUserVerificationRequirement     string   `json:"webAuthnPolicyPasswordlessUserVerificationRequirement"`
}

type RealmEventsConfig

type RealmEventsConfig struct {
	AdminEventsDetailsEnabled bool     `json:"adminEventsDetailsEnabled"`
	AdminEventsEnabled        bool     `json:"adminEventsEnabled"`
	EnabledEventTypes         []string `json:"enabledEventTypes"`
	EventsEnabled             bool     `json:"eventsEnabled"`
	EventsExpiration          int      `json:"eventsExpiration"`
	EventsListeners           []string `json:"eventsListeners,omitempty"`
}

type RequiredAction

type RequiredAction struct {
	Id            string              `json:"-"`
	RealmId       string              `json:"-"`
	Alias         string              `json:"alias"`
	Name          string              `json:"name"`
	ProviderId    string              `json:"providerId"`
	Enabled       bool                `json:"enabled"`
	DefaultAction bool                `json:"defaultAction"`
	Priority      int                 `json:"priority"`
	Config        map[string][]string `json:"config"`
}

type Role

type Role struct {
	Id          string `json:"id,omitempty"`
	RealmId     string `json:"-"`
	ClientId    string `json:"-"`
	RoleId      string `json:"-"`
	Name        string `json:"name"`
	Description string `json:"description"`
	ClientRole  bool   `json:"clientRole"`
	ContainerId string `json:"containerId"`
	Composite   bool   `json:"composite"`
	//extra attributes of a role
	Attributes map[string][]string `json:"attributes"`
}

type RoleMapping

type RoleMapping struct {
	ClientMappings map[string]*ClientRoleMapping `json:"clientMappings"`
	RealmMappings  []*Role                       `json:"realmMappings"`
}

struct for the MappingRepresentation https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_mappingsrepresentation

type SamlAuthenticationFlowBindingOverrides

type SamlAuthenticationFlowBindingOverrides struct {
	BrowserId     string `json:"browser"`
	DirectGrantId string `json:"direct_grant"`
}

type SamlClient

type SamlClient struct {
	Id                      string `json:"id,omitempty"`
	ClientId                string `json:"clientId"`
	RealmId                 string `json:"-"`
	Name                    string `json:"name"`
	Protocol                string `json:"protocol"`                // always saml for this resource
	ClientAuthenticatorType string `json:"clientAuthenticatorType"` // always client-secret

	Enabled     bool   `json:"enabled"`
	Description string `json:"description"`

	FrontChannelLogout bool `json:"frontchannelLogout"`

	RootUrl                 string   `json:"rootUrl"`
	ValidRedirectUris       []string `json:"redirectUris"`
	BaseUrl                 string   `json:"baseUrl"`
	MasterSamlProcessingUrl string   `json:"adminUrl"`

	FullScopeAllowed bool `json:"fullScopeAllowed"`

	Attributes *SamlClientAttributes `json:"attributes"`

	AuthenticationFlowBindingOverrides SamlAuthenticationFlowBindingOverrides `json:"authenticationFlowBindingOverrides,omitempty"`
}

type SamlClientAttributes

type SamlClientAttributes struct {
	IncludeAuthnStatement   *string `json:"saml.authnstatement"`
	SignDocuments           *string `json:"saml.server.signature"`
	SignAssertions          *string `json:"saml.assertion.signature"`
	EncryptAssertions       *string `json:"saml.encrypt"`
	ClientSignatureRequired *string `json:"saml.client.signature"`
	ForcePostBinding        *string `json:"saml.force.post.binding"`
	ForceNameIdFormat       *string `json:"saml_force_name_id_format"`
	// attributes above are actually booleans, but the Keycloak API expects strings
	SignatureAlgorithm              string  `json:"saml.signature.algorithm"`
	NameIdFormat                    string  `json:"saml_name_id_format"`
	SigningCertificate              *string `json:"saml.signing.certificate,omitempty"`
	SigningPrivateKey               *string `json:"saml.signing.private.key"`
	EncryptionCertificate           *string `json:"saml.encryption.certificate"`
	IDPInitiatedSSOURLName          string  `json:"saml_idp_initiated_sso_url_name"`
	IDPInitiatedSSORelayState       string  `json:"saml_idp_initiated_sso_relay_state"`
	AssertionConsumerPostURL        string  `json:"saml_assertion_consumer_url_post"`
	AssertionConsumerRedirectURL    string  `json:"saml_assertion_consumer_url_redirect"`
	LogoutServicePostBindingURL     string  `json:"saml_single_logout_service_url_post"`
	LogoutServiceRedirectBindingURL string  `json:"saml_single_logout_service_url_redirect"`
}

type SamlClientScope

type SamlClientScope struct {
	Id          string `json:"id,omitempty"`
	RealmId     string `json:"-"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Protocol    string `json:"protocol"`
	Attributes  struct {
		DisplayOnConsentScreen KeycloakBoolQuoted `json:"display.on.consent.screen"` // boolean in string form
		ConsentScreenText      string             `json:"consent.screen.text"`
		GuiOrder               string             `json:"gui.order"`
	} `json:"attributes"`
}

type SamlClientScopeFilterFunc

type SamlClientScopeFilterFunc func(*SamlClientScope) bool

type SamlScriptProtocolMapper

type SamlScriptProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	SingleValueAttribute bool

	SamlScript              string
	FriendlyName            string
	SamlAttributeName       string
	SamlAttributeNameFormat string
}

type SamlUserAttributeProtocolMapper

type SamlUserAttributeProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	UserAttribute           string
	FriendlyName            string
	SamlAttributeName       string
	SamlAttributeNameFormat string
}

type SamlUserPropertyProtocolMapper

type SamlUserPropertyProtocolMapper struct {
	Id            string
	Name          string
	RealmId       string
	ClientId      string
	ClientScopeId string

	UserProperty            string
	FriendlyName            string
	SamlAttributeName       string
	SamlAttributeNameFormat string
}

type ServerInfo

type ServerInfo struct {
	SystemInfo     SystemInfo                 `json:"systemInfo"`
	ComponentTypes map[string][]ComponentType `json:"componentTypes"`
	ProviderTypes  map[string]ProviderType    `json:"providers"`
	Themes         map[string][]Theme         `json:"themes"`
}

func (*ServerInfo) ComponentTypeIsInstalled

func (serverInfo *ServerInfo) ComponentTypeIsInstalled(componentType, componentTypeId string) bool

func (*ServerInfo) ThemeIsInstalled

func (serverInfo *ServerInfo) ThemeIsInstalled(t, themeName string) bool

type SmtpServer

type SmtpServer struct {
	StartTls           KeycloakBoolQuoted `json:"starttls,omitempty"`
	Auth               KeycloakBoolQuoted `json:"auth,omitempty"`
	Port               string             `json:"port,omitempty"`
	Host               string             `json:"host,omitempty"`
	ReplyTo            string             `json:"replyTo,omitempty"`
	ReplyToDisplayName string             `json:"replyToDisplayName,omitempty"`
	From               string             `json:"from,omitempty"`
	FromDisplayName    string             `json:"fromDisplayName,omitempty"`
	EnvelopeFrom       string             `json:"envelopeFrom,omitempty"`
	Ssl                KeycloakBoolQuoted `json:"ssl,omitempty"`
	User               string             `json:"user,omitempty"`
	Password           string             `json:"password,omitempty"`
}

type SystemInfo

type SystemInfo struct {
	ServerVersion string `json:"version"`
}

type Theme

type Theme struct {
	Name    string   `json:"name"`
	Locales []string `json:"locales,omitempty"`
}

type User

type User struct {
	Id      string `json:"id,omitempty"`
	RealmId string `json:"-"`

	Username            string              `json:"username"`
	Email               string              `json:"email"`
	EmailVerified       bool                `json:"emailVerified"`
	FirstName           string              `json:"firstName"`
	LastName            string              `json:"lastName"`
	Enabled             bool                `json:"enabled"`
	Attributes          map[string][]string `json:"attributes"`
	FederatedIdentities FederatedIdentities `json:"federatedIdentities"`
}

type UsersInRole

type UsersInRole struct {
	Role  *Role
	Users *[]User
}

type UsersPermissions

type UsersPermissions struct {
	RealmId          string                 `json:"-"`
	Enabled          bool                   `json:"enabled"`
	Resource         string                 `json:"resource"`
	ScopePermissions map[string]interface{} `json:"scopePermissions"`
}

type UsersPermissionsInput

type UsersPermissionsInput struct {
	Enabled bool `json:"enabled"`
}

type Version

type Version string
const (
	Version_6  Version = "6.0.0"
	Version_7  Version = "7.0.0"
	Version_8  Version = "8.0.0"
	Version_9  Version = "9.0.0"
	Version_10 Version = "10.0.0"
	Version_11 Version = "11.0.0"
	Version_12 Version = "12.0.0"
)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL