Documentation ¶
Index ¶
- func ErrorIs404(err error) bool
- func ErrorIs409(err error) bool
- func GetDurationStringFromMilliseconds(milliseconds string) (string, error)
- type ApiError
- type AuthenticationExecution
- type AuthenticationExecutionConfig
- type AuthenticationExecutionInfo
- type AuthenticationExecutionList
- type AuthenticationFlow
- type AuthenticationSubFlow
- type BrowserSecurityHeaders
- type ClientCredentials
- type ClientRoleMapping
- type ComponentType
- type CustomIdentityProviderMapper
- type CustomIdentityProviderMapperConfig
- type CustomUserFederation
- type DefaultRoles
- type FederatedIdentities
- type FederatedIdentity
- type GenericClient
- type GenericClientRepresentation
- type GenericProtocolMapper
- type Group
- type GroupPermissions
- type GroupPermissionsInput
- type Groups
- type IdentityProvider
- type IdentityProviderConfig
- type IdentityProviderMapper
- type IdentityProviderMapperConfig
- type IdentityProviderPermissions
- type IdentityProviderPermissionsInput
- type Key
- type KeycloakClient
- func (keycloakClient *KeycloakClient) AddClientRolesToGroup(ctx context.Context, realmId, groupId, clientId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) AddClientRolesToUser(ctx context.Context, realmId, userId, clientId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) AddCompositesToRole(ctx context.Context, role *Role, compositeRoles []*Role) error
- func (keycloakClient *KeycloakClient) AddRealmRolesToGroup(ctx context.Context, realmId, groupId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) AddRealmRolesToUser(ctx context.Context, realmId, userId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) AddUserToGroups(ctx context.Context, groupIds []string, userId string, realmId string) error
- func (keycloakClient *KeycloakClient) AddUsersToGroup(ctx context.Context, realmId, groupId string, users []interface{}) error
- func (keycloakClient *KeycloakClient) AttachOpenidClientDefaultScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) AttachOpenidClientOptionalScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) AttachSamlClientDefaultScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) CreateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
- func (keycloakClient *KeycloakClient) CreateRole(ctx context.Context, role *Role) error
- func (keycloakClient *KeycloakClient) CreateRoleScopeMapping(ctx context.Context, realmId string, clientId string, clientScopeId string, ...) error
- func (keycloakClient *KeycloakClient) DeleteAuthenticationExecution(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
- func (keycloakClient *KeycloakClient) DeleteAuthenticationFlow(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteAuthenticationSubFlow(ctx context.Context, realmId, parentFlowAlias, id string) error
- func (keycloakClient *KeycloakClient) DeleteComponent(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteCustomIdentityProviderMapper(ctx context.Context, realm, alias, id string) error
- func (keycloakClient *KeycloakClient) DeleteCustomUserFederation(ctx context.Context, realmName, id string) error
- func (keycloakClient *KeycloakClient) DeleteDefaultGroup(ctx context.Context, realmName, groupId string) error
- func (keycloakClient *KeycloakClient) DeleteGenericProtocolMapper(ctx context.Context, realmId string, clientId string, clientScopeId string, ...) error
- func (keycloakClient *KeycloakClient) DeleteGroup(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteIdentityProvider(ctx context.Context, realm, alias string) error
- func (keycloakClient *KeycloakClient) DeleteIdentityProviderMapper(ctx context.Context, realm, alias, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapCustomMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapFullNameMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapGroupMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapHardcodedAttributeMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapHardcodedGroupMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapHardcodedRoleMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapMsadLdsUserAccountControlMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapMsadUserAccountControlMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapRoleMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapUserAttributeMapper(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapUserFederation(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteLdapUserFederationMappers(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdAudienceProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdAudienceResolveProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdFullNameProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdGroupMembershipProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedClaimProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdUserClientRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdUserRealmRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenIdUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClient(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationAggregatePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationClientPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationGroupPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationJSPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationPermission(ctx context.Context, realmId, resourceServerId, permissionId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationResource(ctx context.Context, realmId, clientId, resourceId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationRolePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationScope(ctx context.Context, realmId, resourceServerId, scopeId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationTimePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationUserPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientScope(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRealmRole(ctx context.Context, realm, serviceAccountUserId, roleId string) error
- func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRole(ctx context.Context, realm, serviceAccountUserId, clientId, roleId string) error
- func (keycloakClient *KeycloakClient) DeleteRealm(ctx context.Context, name string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreAesGenerated(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreEcdsaGenerated(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreHmacGenerated(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreJavaKeystore(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsa(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsaEncGenerated(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsaGenerated(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRequiredAction(ctx context.Context, realmName string, alias string) error
- func (keycloakClient *KeycloakClient) DeleteRole(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteRoleScopeMapping(ctx context.Context, realmId string, clientId string, clientScopeId string, ...) error
- func (keycloakClient *KeycloakClient) DeleteSamlClient(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteSamlClientScope(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DeleteSamlHardcodedAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteSamlScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteSamlUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteSamlUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteSamlUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
- func (keycloakClient *KeycloakClient) DeleteUser(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) DetachOpenidClientDefaultScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) DetachOpenidClientOptionalScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) DetachSamlClientDefaultScopes(ctx context.Context, realmId, clientId string, scopeNames []string) error
- func (keycloakClient *KeycloakClient) DisableGroupPermissions(ctx context.Context, realmId, groupId string) error
- func (keycloakClient *KeycloakClient) DisableIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) error
- func (keycloakClient *KeycloakClient) DisableOpenidClientPermissions(ctx context.Context, realmId, clientId string) error
- func (keycloakClient *KeycloakClient) DisableUsersPermissions(ctx context.Context, realmId string) error
- func (keycloakClient *KeycloakClient) EnableGroupPermissions(ctx context.Context, realmId, groupId string) error
- func (keycloakClient *KeycloakClient) EnableIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) error
- func (keycloakClient *KeycloakClient) EnableOpenidClientPermissions(ctx context.Context, realmId, clientId string) error
- func (keycloakClient *KeycloakClient) EnableUsersPermissions(ctx context.Context, realmId string) error
- func (keycloakClient *KeycloakClient) GetAuthenticationExecution(ctx context.Context, realmId, parentFlowAlias, id string) (*AuthenticationExecution, error)
- func (keycloakClient *KeycloakClient) GetAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
- func (keycloakClient *KeycloakClient) GetAuthenticationExecutionInfoFromProviderId(ctx context.Context, realmId, parentFlowAlias, providerId string) (*AuthenticationExecutionInfo, error)
- func (keycloakClient *KeycloakClient) GetAuthenticationFlow(ctx context.Context, realmId, id string) (*AuthenticationFlow, error)
- func (keycloakClient *KeycloakClient) GetAuthenticationFlowFromAlias(ctx context.Context, realmId, alias string) (*AuthenticationFlow, error)
- func (keycloakClient *KeycloakClient) GetAuthenticationSubFlow(ctx context.Context, realmId, parentFlowAlias, id string) (*AuthenticationSubFlow, error)
- func (keycloakClient *KeycloakClient) GetClientAuthorizationPolicyByName(ctx context.Context, realmId, resourceServerId, name string) (*OpenidClientAuthorizationPolicy, error)
- func (keycloakClient *KeycloakClient) GetClientRoleUsers(ctx context.Context, realmId string, roles []*Role) (*[]UsersInRole, error)
- func (keycloakClient *KeycloakClient) GetClientRoles(ctx context.Context, realmId string, clients []*OpenidClient) ([]*Role, error)
- func (keycloakClient *KeycloakClient) GetCustomIdentityProviderMapper(ctx context.Context, realm, alias, id string) (*CustomIdentityProviderMapper, error)
- func (keycloakClient *KeycloakClient) GetCustomUserFederation(ctx context.Context, realmName, id string) (*CustomUserFederation, error)
- func (keycloakClient *KeycloakClient) GetCustomUserFederations(ctx context.Context, realmName, realmId string) (*[]CustomUserFederation, error)
- func (keycloakClient *KeycloakClient) GetDefaultGroups(ctx context.Context, realmName string) ([]Group, error)
- func (keycloakClient *KeycloakClient) GetDefaultRoles(ctx context.Context, realmId, id string) ([]*Role, error)
- func (keycloakClient *KeycloakClient) GetFlattenedGroupsHierarchy(ctx context.Context, realmId string, fullHierarchy bool) (Groups, error)
- func (keycloakClient *KeycloakClient) GetGenericClient(ctx context.Context, realmId, id string) (*GenericClient, error)
- func (keycloakClient *KeycloakClient) GetGenericClientByClientId(ctx context.Context, realmId, clientId string) (*GenericClient, error)
- func (keycloakClient *KeycloakClient) GetGenericProtocolMapper(ctx context.Context, realmId string, clientId string, clientScopeId string, ...) (*GenericProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetGenericProtocolMappers(ctx context.Context, realmId string, clientId string) (*OpenidClientWithGenericProtocolMappers, error)
- func (keycloakClient *KeycloakClient) GetGroup(ctx context.Context, realmId, id string) (*Group, error)
- func (keycloakClient *KeycloakClient) GetGroupByName(ctx context.Context, realmId, name string) (*Group, error)
- func (keycloakClient *KeycloakClient) GetGroupMembers(ctx context.Context, realmId, groupId string) ([]*User, error)
- func (keycloakClient *KeycloakClient) GetGroupPermissions(ctx context.Context, realmId, groupId string) (*GroupPermissions, error)
- func (keycloakClient *KeycloakClient) GetGroupRoleMappings(ctx context.Context, realmId string, userId string) (*RoleMapping, error)
- func (keycloakClient *KeycloakClient) GetGroups(ctx context.Context, realmId string) ([]*Group, error)
- func (keycloakClient *KeycloakClient) GetIdentityProvider(ctx context.Context, realm, alias string) (*IdentityProvider, error)
- func (keycloakClient *KeycloakClient) GetIdentityProviderMapper(ctx context.Context, realm, alias, id string) (*IdentityProviderMapper, error)
- func (keycloakClient *KeycloakClient) GetIdentityProviderMappers(ctx context.Context, realm, alias string) ([]*IdentityProviderMapper, error)
- func (keycloakClient *KeycloakClient) GetIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) (*IdentityProviderPermissions, error)
- func (keycloakClient *KeycloakClient) GetLdapCustomMapper(ctx context.Context, realmId, id string) (*LdapCustomMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapFullNameMapper(ctx context.Context, realmId, id string) (*LdapFullNameMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapGroupMapper(ctx context.Context, realmId, id string) (*LdapGroupMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapHardcodedAttributeMapper(ctx context.Context, realmId, id string) (*LdapHardcodedAttributeMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapHardcodedGroupMapper(ctx context.Context, realmId, id string) (*LdapHardcodedGroupMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapHardcodedRoleMapper(ctx context.Context, realmId, id string) (*LdapHardcodedRoleMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapMsadLdsUserAccountControlMapper(ctx context.Context, realmId, id string) (*LdapMsadLdsUserAccountControlMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapMsadUserAccountControlMapper(ctx context.Context, realmId, id string) (*LdapMsadUserAccountControlMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapRoleMapper(ctx context.Context, realmId, id string) (*LdapRoleMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapUserAttributeMapper(ctx context.Context, realmId, id string) (*LdapUserAttributeMapper, error)
- func (keycloakClient *KeycloakClient) GetLdapUserFederation(ctx context.Context, realmId, id string) (*LdapUserFederation, error)
- func (keycloakClient *KeycloakClient) GetLdapUserFederationMappers(ctx context.Context, realmId, id string) (*[]interface{}, error)
- func (keycloakClient *KeycloakClient) GetOpenIdAudienceProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdAudienceProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdAudienceResolveProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdAudienceResolveProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdFullNameProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdFullNameProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdGroupMembershipProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdGroupMembershipProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdHardcodedClaimProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedClaimProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdHardcodedRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedRoleProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdScriptProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserAttributeProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdUserClientRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserClientRoleProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserPropertyProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdUserRealmRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserRealmRoleProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenIdUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserSessionNoteProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetOpenidClient(ctx context.Context, realmId, id string) (*OpenidClient, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationAggregatePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationAggregatePolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationClientPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationClientPolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationGroupPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationGroupPolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationJSPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationJSPolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationPermission(ctx context.Context, realm, resourceServerId, id string) (*OpenidClientAuthorizationPermission, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResource(ctx context.Context, realm, resourceServerId, resourceId string) (*OpenidClientAuthorizationResource, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResourceByName(ctx context.Context, realmId, resourceServerId, name string) (*OpenidClientAuthorizationResource, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationRolePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationRolePolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationScope(ctx context.Context, realm, resourceServerId, scopeId string) (*OpenidClientAuthorizationScope, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationTimePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationTimePolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationUserPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationUserPolicy, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientByClientId(ctx context.Context, realmId, clientId string) (*OpenidClient, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientDefaultScopes(ctx context.Context, realmId, clientId string) ([]*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientOptionalScopes(ctx context.Context, realmId, clientId string) ([]*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientPermissions(ctx context.Context, realmId, clientId string) (*OpenidClientPermissions, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientScope(ctx context.Context, realmId, id string) (*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountClientRoles(ctx context.Context, realm, serviceAccountUserId, clientId string) ([]*OpenidClientServiceAccountRole, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRole(ctx context.Context, realm, serviceAccountUserId, roleId string) (*OpenidClientServiceAccountRealmRole, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRoles(ctx context.Context, realm, serviceAccountUserId string) ([]*OpenidClientServiceAccountRole, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRole(ctx context.Context, realm, serviceAccountUserId, clientId, roleId string) (*OpenidClientServiceAccountRole, error)
- func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountUserId(ctx context.Context, realmId, clientId string) (*User, error)
- func (keycloakClient *KeycloakClient) GetOpenidClients(ctx context.Context, realmId string, withSecrets bool) ([]*OpenidClient, error)
- func (keycloakClient *KeycloakClient) GetOpenidDefaultClientScopes(ctx context.Context, realmId, clientId string) (*[]OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetOpenidOptionalClientScopes(ctx context.Context, realmId, clientId string) (*[]OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetRealm(ctx context.Context, name string) (*Realm, error)
- func (keycloakClient *KeycloakClient) GetRealmDefaultClientScopes(ctx context.Context, realmId string) ([]*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetRealmEventsConfig(ctx context.Context, realmId string) (*RealmEventsConfig, error)
- func (keycloakClient *KeycloakClient) GetRealmKeys(ctx context.Context, name string) (*Keys, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreAesGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreAesGenerated, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreEcdsaGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreEcdsaGenerated, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreHmacGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreHmacGenerated, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreJavaKeystore(ctx context.Context, realmId, id string) (*RealmKeystoreJavaKeystore, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreRsa(ctx context.Context, realmId, id string) (*RealmKeystoreRsa, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreRsaEncGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreRsaEncGenerated, error)
- func (keycloakClient *KeycloakClient) GetRealmKeystoreRsaGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreRsaGenerated, error)
- func (keycloakClient *KeycloakClient) GetRealmOptionalClientScopes(ctx context.Context, realmId string) ([]*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) GetRealmRoles(ctx context.Context, realmId string) ([]*Role, error)
- func (keycloakClient *KeycloakClient) GetRealmUserProfile(ctx context.Context, realmId string) (*RealmUserProfile, error)
- func (keycloakClient *KeycloakClient) GetRealms(ctx context.Context) ([]*Realm, error)
- func (keycloakClient *KeycloakClient) GetRequiredAction(ctx context.Context, realmId string, alias string) (*RequiredAction, error)
- func (keycloakClient *KeycloakClient) GetRequiredActions(ctx context.Context, realmId string) ([]*RequiredAction, error)
- func (keycloakClient *KeycloakClient) GetRole(ctx context.Context, realmId, id string) (*Role, error)
- func (keycloakClient *KeycloakClient) GetRoleByName(ctx context.Context, realmId, clientId, name string) (*Role, error)
- func (keycloakClient *KeycloakClient) GetRoleComposites(ctx context.Context, role *Role) ([]*Role, error)
- func (keycloakClient *KeycloakClient) GetRoleScopeMapping(ctx context.Context, realmId string, clientId string, clientScopeId string, ...) (*Role, error)
- func (keycloakClient *KeycloakClient) GetSamlClient(ctx context.Context, realmId, id string) (*SamlClient, error)
- func (keycloakClient *KeycloakClient) GetSamlClientByClientId(ctx context.Context, realmId, clientId string) (*SamlClient, error)
- func (keycloakClient *KeycloakClient) GetSamlClientDefaultScopes(ctx context.Context, realmId, clientId string) ([]*SamlClientScope, error)
- func (keycloakClient *KeycloakClient) GetSamlClientInstallationProvider(ctx context.Context, realmId, id string, providerId string) ([]byte, error)
- func (keycloakClient *KeycloakClient) GetSamlClientScope(ctx context.Context, realmId, id string) (*SamlClientScope, error)
- func (keycloakClient *KeycloakClient) GetSamlDefaultClientScopes(ctx context.Context, realmId, clientId string) (*[]SamlClientScope, error)
- func (keycloakClient *KeycloakClient) GetSamlHardcodedAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlHardcodedAttributeProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetSamlScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlScriptProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetSamlUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserAttributeProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetSamlUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserPropertyProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetSamlUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserSessionNoteProtocolMapper, error)
- func (keycloakClient *KeycloakClient) GetServerInfo(ctx context.Context) (*ServerInfo, error)
- func (keycloakClient *KeycloakClient) GetUnregisteredRequiredActions(ctx context.Context, realmId string) ([]*RequiredAction, error)
- func (keycloakClient *KeycloakClient) GetUser(ctx context.Context, realmId, id string) (*User, error)
- func (keycloakClient *KeycloakClient) GetUserByUsername(ctx context.Context, realmId, username string) (*User, error)
- func (keycloakClient *KeycloakClient) GetUserGroups(ctx context.Context, realmId, userId string) ([]*Group, error)
- func (keycloakClient *KeycloakClient) GetUserRoleMappings(ctx context.Context, realmId string, userId string) (*RoleMapping, error)
- func (keycloakClient *KeycloakClient) GetUsers(ctx context.Context, realmId string) ([]*User, error)
- func (keycloakClient *KeycloakClient) GetUsersPermissions(ctx context.Context, realmId string) (*UsersPermissions, error)
- func (keycloakClient *KeycloakClient) ListAuthenticationExecutions(ctx context.Context, realmId, parentFlowAlias string) (AuthenticationExecutionList, error)
- func (keycloakClient *KeycloakClient) ListAuthenticationFlows(ctx context.Context, realmId string) ([]*AuthenticationFlow, error)
- func (keycloakClient *KeycloakClient) ListGroupsWithName(ctx context.Context, realmId, name string) ([]*Group, error)
- func (keycloakClient *KeycloakClient) ListOpenidClientScopesWithFilter(ctx context.Context, realmId string, filter OpenidClientScopeFilterFunc) ([]*OpenidClientScope, error)
- func (keycloakClient *KeycloakClient) ListSamlClientScopesWithFilter(ctx context.Context, realmId string, filter SamlClientScopeFilterFunc) ([]*SamlClientScope, error)
- func (keycloakClient *KeycloakClient) LowerAuthenticationExecutionPriority(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) LowerAuthenticationSubFlowPriority(ctx context.Context, realmId, parentFlowAlias, id string) error
- func (keycloakClient *KeycloakClient) NewAuthenticationExecution(ctx context.Context, execution *AuthenticationExecution) error
- func (keycloakClient *KeycloakClient) NewAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) (string, error)
- func (keycloakClient *KeycloakClient) NewAuthenticationFlow(ctx context.Context, authenticationFlow *AuthenticationFlow) error
- func (keycloakClient *KeycloakClient) NewAuthenticationSubFlow(ctx context.Context, authenticationSubFlow *AuthenticationSubFlow) error
- func (keycloakClient *KeycloakClient) NewCustomIdentityProviderMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) NewCustomUserFederation(ctx context.Context, realmId string, ...) error
- func (keycloakClient *KeycloakClient) NewGenericClientDescription(ctx context.Context, realmId string, body string) (*GenericClientRepresentation, error)
- func (keycloakClient *KeycloakClient) NewGenericProtocolMapper(ctx context.Context, genericProtocolMapper *GenericProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewGroup(ctx context.Context, group *Group) error
- func (keycloakClient *KeycloakClient) NewIdentityProvider(ctx context.Context, identityProvider *IdentityProvider) error
- func (keycloakClient *KeycloakClient) NewIdentityProviderMapper(ctx context.Context, identityProviderMapper *IdentityProviderMapper) error
- func (keycloakClient *KeycloakClient) NewLdapCustomMapper(ctx context.Context, ldapCustomMapper *LdapCustomMapper) error
- func (keycloakClient *KeycloakClient) NewLdapFullNameMapper(ctx context.Context, ldapFullNameMapper *LdapFullNameMapper) error
- func (keycloakClient *KeycloakClient) NewLdapGroupMapper(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
- func (keycloakClient *KeycloakClient) NewLdapHardcodedAttributeMapper(ctx context.Context, ldapMapper *LdapHardcodedAttributeMapper) error
- func (keycloakClient *KeycloakClient) NewLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
- func (keycloakClient *KeycloakClient) NewLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
- func (keycloakClient *KeycloakClient) NewLdapMsadLdsUserAccountControlMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) NewLdapMsadUserAccountControlMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) NewLdapRoleMapper(ctx context.Context, ldapRoleMapper *LdapRoleMapper) error
- func (keycloakClient *KeycloakClient) NewLdapUserAttributeMapper(ctx context.Context, ldapUserAttributeMapper *LdapUserAttributeMapper) error
- func (keycloakClient *KeycloakClient) NewLdapUserFederation(ctx context.Context, realmId string, ldapUserFederation *LdapUserFederation) error
- func (keycloakClient *KeycloakClient) NewOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdUserPropertyProtocolMapper(ctx context.Context, mapper *OpenIdUserPropertyProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewOpenidClient(ctx context.Context, client *OpenidClient) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationAggregatePolicy(ctx context.Context, policy *OpenidClientAuthorizationAggregatePolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationClientPolicy(ctx context.Context, policy *OpenidClientAuthorizationClientPolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationGroupPolicy(ctx context.Context, policy *OpenidClientAuthorizationGroupPolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationJSPolicy(ctx context.Context, policy *OpenidClientAuthorizationJSPolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationPermission(ctx context.Context, permission *OpenidClientAuthorizationPermission) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationResource(ctx context.Context, resource *OpenidClientAuthorizationResource) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationRolePolicy(ctx context.Context, policy *OpenidClientAuthorizationRolePolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationScope(ctx context.Context, scope *OpenidClientAuthorizationScope) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationTimePolicy(ctx context.Context, policy *OpenidClientAuthorizationTimePolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationUserPolicy(ctx context.Context, policy *OpenidClientAuthorizationUserPolicy) error
- func (keycloakClient *KeycloakClient) NewOpenidClientScope(ctx context.Context, clientScope *OpenidClientScope) error
- func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRealmRole(ctx context.Context, serviceAccountRole *OpenidClientServiceAccountRealmRole) error
- func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRole(ctx context.Context, serviceAccountRole *OpenidClientServiceAccountRole) error
- func (keycloakClient *KeycloakClient) NewRealm(ctx context.Context, realm *Realm) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreAesGenerated(ctx context.Context, realmKey *RealmKeystoreAesGenerated) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreEcdsaGenerated(ctx context.Context, realmKey *RealmKeystoreEcdsaGenerated) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreHmacGenerated(ctx context.Context, realmKey *RealmKeystoreHmacGenerated) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreJavaKeystore(ctx context.Context, realmKey *RealmKeystoreJavaKeystore) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreRsa(ctx context.Context, realmKey *RealmKeystoreRsa) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreRsaEncGenerated(ctx context.Context, realmKey *RealmKeystoreRsaEncGenerated) error
- func (keycloakClient *KeycloakClient) NewRealmKeystoreRsaGenerated(ctx context.Context, realmKey *RealmKeystoreRsaGenerated) error
- func (keycloakClient *KeycloakClient) NewSamlClient(ctx context.Context, client *SamlClient) error
- func (keycloakClient *KeycloakClient) NewSamlClientScope(ctx context.Context, clientScope *SamlClientScope) error
- func (keycloakClient *KeycloakClient) NewSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
- func (keycloakClient *KeycloakClient) NewUser(ctx context.Context, user *User) error
- func (keycloakClient *KeycloakClient) PutDefaultGroup(ctx context.Context, realmName, groupId string) error
- func (keycloakClient *KeycloakClient) RaiseAuthenticationExecutionPriority(ctx context.Context, realmId, id string) error
- func (keycloakClient *KeycloakClient) RaiseAuthenticationSubFlowPriority(ctx context.Context, realmId, parentFlowAlias, id string) error
- func (keycloakClient *KeycloakClient) RegisterRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
- func (keycloakClient *KeycloakClient) RemoveClientRolesFromGroup(ctx context.Context, realmId, groupId, clientId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) RemoveClientRolesFromUser(ctx context.Context, realmId, userId, clientId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) RemoveCompositesFromRole(ctx context.Context, role *Role, compositeRoles []*Role) error
- func (keycloakClient *KeycloakClient) RemoveRealmRolesFromGroup(ctx context.Context, realmId, groupId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) RemoveRealmRolesFromUser(ctx context.Context, realmId, userId string, roles []*Role) error
- func (keycloakClient *KeycloakClient) RemoveUserFromGroup(ctx context.Context, user *User, groupId string) error
- func (keycloakClient *KeycloakClient) RemoveUserFromGroups(ctx context.Context, groupIds []string, userId string, realmId string) error
- func (keycloakClient *KeycloakClient) RemoveUsersFromGroup(ctx context.Context, realmId, groupId string, usernames []interface{}) error
- func (keycloakClient *KeycloakClient) ResetUserPassword(ctx context.Context, realmId, userId string, newPassword string, ...) error
- func (keycloakClient *KeycloakClient) UpdateAuthenticationExecution(ctx context.Context, execution *AuthenticationExecution) error
- func (keycloakClient *KeycloakClient) UpdateAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
- func (keycloakClient *KeycloakClient) UpdateAuthenticationExecutionRequirement(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) UpdateAuthenticationFlow(ctx context.Context, authenticationFlow *AuthenticationFlow) error
- func (keycloakClient *KeycloakClient) UpdateAuthenticationSubFlow(ctx context.Context, authenticationSubFlow *AuthenticationSubFlow) error
- func (keycloakClient *KeycloakClient) UpdateCustomIdentityProviderMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) UpdateCustomUserFederation(ctx context.Context, realmId string, ...) error
- func (keycloakClient *KeycloakClient) UpdateGenericProtocolMapper(ctx context.Context, genericProtocolMapper *GenericProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateGroup(ctx context.Context, group *Group) error
- func (keycloakClient *KeycloakClient) UpdateIdentityProvider(ctx context.Context, identityProvider *IdentityProvider) error
- func (keycloakClient *KeycloakClient) UpdateIdentityProviderMapper(ctx context.Context, identityProviderMapper *IdentityProviderMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapCustomMapper(ctx context.Context, ldapCustomMapper *LdapCustomMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapFullNameMapper(ctx context.Context, ldapFullNameMapper *LdapFullNameMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapGroupMapper(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapHardcodedAttributeMapper(ctx context.Context, ldapMapper *LdapHardcodedAttributeMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapMsadLdsUserAccountControlMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) UpdateLdapMsadUserAccountControlMapper(ctx context.Context, ...) error
- func (keycloakClient *KeycloakClient) UpdateLdapRoleMapper(ctx context.Context, ldapRoleMapper *LdapRoleMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapUserAttributeMapper(ctx context.Context, ldapUserAttributeMapper *LdapUserAttributeMapper) error
- func (keycloakClient *KeycloakClient) UpdateLdapUserFederation(ctx context.Context, realmId string, ldapUserFederation *LdapUserFederation) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdUserPropertyProtocolMapper(ctx context.Context, mapper *OpenIdUserPropertyProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClient(ctx context.Context, client *OpenidClient) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationAggregatePolicy(ctx context.Context, policy *OpenidClientAuthorizationAggregatePolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationClientPolicy(ctx context.Context, policy *OpenidClientAuthorizationClientPolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationGroupPolicy(ctx context.Context, policy *OpenidClientAuthorizationGroupPolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationJSPolicy(ctx context.Context, policy *OpenidClientAuthorizationJSPolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationPermission(ctx context.Context, permission *OpenidClientAuthorizationPermission) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationResource(ctx context.Context, resource *OpenidClientAuthorizationResource) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationRolePolicy(ctx context.Context, policy *OpenidClientAuthorizationRolePolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationScope(ctx context.Context, scope *OpenidClientAuthorizationScope) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationTimePolicy(ctx context.Context, policy *OpenidClientAuthorizationTimePolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationUserPolicy(ctx context.Context, policy *OpenidClientAuthorizationUserPolicy) error
- func (keycloakClient *KeycloakClient) UpdateOpenidClientScope(ctx context.Context, clientScope *OpenidClientScope) error
- func (keycloakClient *KeycloakClient) UpdateRealm(ctx context.Context, realm *Realm) error
- func (keycloakClient *KeycloakClient) UpdateRealmEventsConfig(ctx context.Context, realmId string, realmEventsConfig *RealmEventsConfig) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreAesGenerated(ctx context.Context, realmKey *RealmKeystoreAesGenerated) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreEcdsaGenerated(ctx context.Context, realmKey *RealmKeystoreEcdsaGenerated) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreHmacGenerated(ctx context.Context, realmKey *RealmKeystoreHmacGenerated) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreJavaKeystore(ctx context.Context, realmKey *RealmKeystoreJavaKeystore) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsa(ctx context.Context, realmKey *RealmKeystoreRsa) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsaEncGenerated(ctx context.Context, realmKey *RealmKeystoreRsaEncGenerated) error
- func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsaGenerated(ctx context.Context, realmKey *RealmKeystoreRsaGenerated) error
- func (keycloakClient *KeycloakClient) UpdateRealmUserProfile(ctx context.Context, realmId string, realmUserProfile *RealmUserProfile) error
- func (keycloakClient *KeycloakClient) UpdateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
- func (keycloakClient *KeycloakClient) UpdateRole(ctx context.Context, role *Role) error
- func (keycloakClient *KeycloakClient) UpdateSamlClient(ctx context.Context, client *SamlClient) error
- func (keycloakClient *KeycloakClient) UpdateSamlClientScope(ctx context.Context, clientScope *SamlClientScope) error
- func (keycloakClient *KeycloakClient) UpdateSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
- func (keycloakClient *KeycloakClient) UpdateUser(ctx context.Context, user *User) error
- func (keycloakClient *KeycloakClient) ValidateCustomUserFederation(ctx context.Context, custom *CustomUserFederation) error
- func (keycloakClient *KeycloakClient) ValidateGroupMembers(usernames []interface{}) error
- func (keycloakClient *KeycloakClient) ValidateLdapFullNameMapper(ctx context.Context, mapper *LdapFullNameMapper) error
- func (keycloakClient *KeycloakClient) ValidateLdapGroupMapper(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
- func (keycloakClient *KeycloakClient) ValidateLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
- func (keycloakClient *KeycloakClient) ValidateLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
- func (keycloakClient *KeycloakClient) ValidateLdapUserFederation(ctx context.Context, ldap *LdapUserFederation) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateOpenidClient(ctx context.Context, client *OpenidClient) error
- func (keycloakClient *KeycloakClient) ValidateRealm(ctx context.Context, realm *Realm) error
- func (keycloakClient *KeycloakClient) ValidateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
- func (keycloakClient *KeycloakClient) ValidateSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
- func (keycloakClient *KeycloakClient) ValidateSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
- func (KeycloakClient *KeycloakClient) Version() *version.Version
- func (keycloakClient *KeycloakClient) VersionIsGreaterThanOrEqualTo(ctx context.Context, versionString Version) (bool, error)
- func (keycloakClient *KeycloakClient) VersionIsLessThanOrEqualTo(ctx context.Context, versionString Version) (bool, error)
- type Keys
- type LdapCustomMapper
- type LdapFullNameMapper
- type LdapGroupMapper
- type LdapHardcodedAttributeMapper
- type LdapHardcodedGroupMapper
- type LdapHardcodedRoleMapper
- type LdapMsadLdsUserAccountControlMapper
- type LdapMsadUserAccountControlMapper
- type LdapRoleMapper
- type LdapUserAttributeMapper
- type LdapUserFederation
- type OpenIdAudienceProtocolMapper
- type OpenIdAudienceResolveProtocolMapper
- type OpenIdFullNameProtocolMapper
- type OpenIdGroupMembershipProtocolMapper
- type OpenIdHardcodedClaimProtocolMapper
- type OpenIdHardcodedRoleProtocolMapper
- type OpenIdScriptProtocolMapper
- type OpenIdUserAttributeProtocolMapper
- type OpenIdUserClientRoleProtocolMapper
- type OpenIdUserPropertyProtocolMapper
- type OpenIdUserRealmRoleProtocolMapper
- type OpenIdUserSessionNoteProtocolMapper
- type OpenidAuthenticationFlowBindingOverrides
- type OpenidClient
- type OpenidClientAttributes
- type OpenidClientAuthorizationAggregatePolicy
- type OpenidClientAuthorizationClientPolicy
- type OpenidClientAuthorizationGroup
- type OpenidClientAuthorizationGroupPolicy
- type OpenidClientAuthorizationJSPolicy
- type OpenidClientAuthorizationPermission
- type OpenidClientAuthorizationPolicy
- type OpenidClientAuthorizationResource
- type OpenidClientAuthorizationRole
- type OpenidClientAuthorizationRolePolicy
- type OpenidClientAuthorizationScope
- type OpenidClientAuthorizationSettings
- type OpenidClientAuthorizationTimePolicy
- type OpenidClientAuthorizationUserPolicy
- type OpenidClientPermissions
- type OpenidClientPermissionsInput
- type OpenidClientRole
- type OpenidClientScope
- type OpenidClientScopeFilterFunc
- type OpenidClientSecret
- type OpenidClientServiceAccountRealmRole
- type OpenidClientServiceAccountRole
- type OpenidClientWithGenericProtocolMappers
- type PasswordCredentials
- type Provider
- type ProviderType
- type Realm
- type RealmEventsConfig
- type RealmKeystoreAesGenerated
- type RealmKeystoreEcdsaGenerated
- type RealmKeystoreHmacGenerated
- type RealmKeystoreJavaKeystore
- type RealmKeystoreRsa
- type RealmKeystoreRsaEncGenerated
- type RealmKeystoreRsaGenerated
- type RealmRoleRepresentation
- type RealmUserProfile
- type RealmUserProfileAttribute
- type RealmUserProfileGroup
- type RealmUserProfilePermissions
- type RealmUserProfileRequired
- type RealmUserProfileSelector
- type RealmUserProfileValidationConfig
- type RequiredAction
- type Role
- type RoleMapping
- type SamlAuthenticationFlowBindingOverrides
- type SamlClient
- type SamlClientAttributes
- type SamlClientScope
- type SamlClientScopeFilterFunc
- type SamlHardcodedAttributeProtocolMapper
- type SamlScriptProtocolMapper
- type SamlUserAttributeProtocolMapper
- type SamlUserPropertyProtocolMapper
- type SamlUserSessionNoteProtocolMapper
- type ServerInfo
- type SmtpServer
- type SystemInfo
- type Theme
- type User
- type UsersInRole
- type UsersPermissions
- type UsersPermissionsInput
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorIs404 ¶
func ErrorIs409 ¶
func GetDurationStringFromMilliseconds ¶
Converts a string representing milliseconds from Keycloak API to a duration string used by the provider Ex: "3600000" => "1h0m0s"
Types ¶
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,omitempty"` 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 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. it can be updated, but this provider will only set it to `true` 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"` ReferrerPolicy string `json:"referrerPolicy"` }
type ClientCredentials ¶
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 ComponentType ¶
type ComponentType struct {
Id string `json:"id"`
}
type CustomIdentityProviderMapper ¶
type CustomIdentityProviderMapper 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 *CustomIdentityProviderMapperConfig `json:"config,omitempty"` }
type CustomIdentityProviderMapperConfig ¶
type CustomIdentityProviderMapperConfig struct {
ExtraConfig map[string]interface{} `json:"-"`
}
func (*CustomIdentityProviderMapperConfig) MarshalJSON ¶
func (f *CustomIdentityProviderMapperConfig) MarshalJSON() ([]byte, error)
func (*CustomIdentityProviderMapperConfig) UnmarshalJSON ¶
func (f *CustomIdentityProviderMapperConfig) UnmarshalJSON(data []byte) error
type CustomUserFederation ¶
type DefaultRoles ¶
type FederatedIdentities ¶
type FederatedIdentities []*FederatedIdentity
type FederatedIdentity ¶
type GenericClient ¶
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 []*GenericProtocolMapper `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"` }
type GenericProtocolMapper ¶
type GenericProtocolMapper 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 (*GenericProtocolMapper) Validate ¶
func (mapper *GenericProtocolMapper) Validate(ctx context.Context, keycloakClient *KeycloakClient) error
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"` SubGroupCount int `json:"subGroupCount,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 GroupPermissions ¶
type GroupPermissionsInput ¶
type GroupPermissionsInput struct {
Enabled bool `json:"enabled"`
}
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"` HideOnLogin bool `json:"hideOnLogin,omitempty"` // since keycloak v26 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 types.KeycloakBoolQuoted `json:"useJwksUrl,omitempty"` JwksUrl string `json:"jwksUrl,omitempty"` ClientId string `json:"clientId,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` DisableUserInfo types.KeycloakBoolQuoted `json:"disableUserInfo"` UserInfoUrl string `json:"userInfoUrl,omitempty"` HideOnLoginPage types.KeycloakBoolQuoted `json:"hideOnLoginPage,omitempty"` 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"` XmlSigKeyInfoKeyNameTransformer string `json:"xmlSigKeyInfoKeyNameTransformer,omitempty"` PostBindingAuthnRequest types.KeycloakBoolQuoted `json:"postBindingAuthnRequest,omitempty"` PostBindingResponse types.KeycloakBoolQuoted `json:"postBindingResponse,omitempty"` PostBindingLogout types.KeycloakBoolQuoted `json:"postBindingLogout,omitempty"` ForceAuthn types.KeycloakBoolQuoted `json:"forceAuthn,omitempty"` WantAuthnRequestsSigned types.KeycloakBoolQuoted `json:"wantAuthnRequestsSigned,omitempty"` WantAssertionsSigned types.KeycloakBoolQuoted `json:"wantAssertionsSigned,omitempty"` WantAssertionsEncrypted types.KeycloakBoolQuoted `json:"wantAssertionsEncrypted,omitempty"` BackchannelSupported types.KeycloakBoolQuoted `json:"backchannelSupported,omitempty"` ValidateSignature types.KeycloakBoolQuoted `json:"validateSignature,omitempty"` AuthorizationUrl string `json:"authorizationUrl,omitempty"` TokenUrl string `json:"tokenUrl,omitempty"` LoginHint string `json:"loginHint,omitempty"` UILocales types.KeycloakBoolQuoted `json:"uiLocales,omitempty"` LogoutUrl string `json:"logoutUrl,omitempty"` DefaultScope string `json:"defaultScope,omitempty"` AcceptsPromptNoneForwFrmClt types.KeycloakBoolQuoted `json:"acceptsPromptNoneForwardFromClient,omitempty"` HostedDomain string `json:"hostedDomain,omitempty"` UserIp types.KeycloakBoolQuoted `json:"userIp,omitempty"` OfflineAccess types.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:"-"` AuthnContextClassRefs types.KeycloakSliceQuoted `json:"authnContextClassRefs,omitempty"` AuthnContextComparisonType string `json:"authnContextComparisonType,omitempty"` AuthnContextDeclRefs types.KeycloakSliceQuoted `json:"authnContextDeclRefs,omitempty"` Issuer string `json:"issuer,omitempty"` }
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 *IdentityProviderMapperConfig `json:"config,omitempty"` }
type IdentityProviderMapperConfig ¶
type IdentityProviderMapperConfig struct { UserAttribute string `json:"user.attribute,omitempty"` UserAttributeName string `json:"userAttribute,omitempty"` Claim string `json:"claim,omitempty"` ClaimValue string `json:"claim.value,omitempty"` HardcodedAttribute string `json:"attribute,omitempty"` Attribute string `json:"attribute.name,omitempty"` AttributeValue string `json:"attribute.value,omitempty"` AttributeFriendlyName string `json:"attribute.friendly.name,omitempty"` Template string `json:"template,omitempty"` Role string `json:"role,omitempty"` JsonField string `json:"jsonField,omitEmpty"` ExtraConfig map[string]interface{} `json:"-"` }
func (*IdentityProviderMapperConfig) MarshalJSON ¶
func (f *IdentityProviderMapperConfig) MarshalJSON() ([]byte, error)
func (*IdentityProviderMapperConfig) UnmarshalJSON ¶
func (f *IdentityProviderMapperConfig) UnmarshalJSON(data []byte) error
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 KeycloakClient ¶
type KeycloakClient struct {
// contains filtered or unexported fields
}
func NewKeycloakClient ¶
func NewKeycloakClient(ctx context.Context, url, basePath, clientId, clientSecret, realm, username, password string, initialLogin bool, clientTimeout int, caCert string, tlsInsecureSkipVerify bool, userAgent string, redHatSSO bool, additionalHeaders map[string]string, tlsClientCert string, tlsClientPrivateKey string) (*KeycloakClient, error)
func (*KeycloakClient) AddClientRolesToGroup ¶
func (*KeycloakClient) AddClientRolesToUser ¶
func (*KeycloakClient) AddCompositesToRole ¶
func (*KeycloakClient) AddRealmRolesToGroup ¶
func (*KeycloakClient) AddRealmRolesToUser ¶
func (*KeycloakClient) AddUserToGroups ¶
func (*KeycloakClient) AddUsersToGroup ¶
func (keycloakClient *KeycloakClient) AddUsersToGroup(ctx context.Context, realmId, groupId string, users []interface{}) error
func (*KeycloakClient) AttachOpenidClientDefaultScopes ¶
func (*KeycloakClient) AttachOpenidClientOptionalScopes ¶
func (*KeycloakClient) AttachSamlClientDefaultScopes ¶
func (*KeycloakClient) CreateRequiredAction ¶
func (keycloakClient *KeycloakClient) CreateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
func (*KeycloakClient) CreateRole ¶
func (keycloakClient *KeycloakClient) CreateRole(ctx context.Context, role *Role) error
func (*KeycloakClient) CreateRoleScopeMapping ¶
func (*KeycloakClient) DeleteAuthenticationExecution ¶
func (keycloakClient *KeycloakClient) DeleteAuthenticationExecution(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteAuthenticationExecutionConfig ¶
func (keycloakClient *KeycloakClient) DeleteAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_removeauthenticatorconfig
func (*KeycloakClient) DeleteAuthenticationFlow ¶
func (keycloakClient *KeycloakClient) DeleteAuthenticationFlow(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteAuthenticationSubFlow ¶
func (keycloakClient *KeycloakClient) DeleteAuthenticationSubFlow(ctx context.Context, realmId, parentFlowAlias, id string) error
func (*KeycloakClient) DeleteComponent ¶
func (keycloakClient *KeycloakClient) DeleteComponent(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteCustomIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) DeleteCustomIdentityProviderMapper(ctx context.Context, realm, alias, id string) error
func (*KeycloakClient) DeleteCustomUserFederation ¶
func (keycloakClient *KeycloakClient) DeleteCustomUserFederation(ctx context.Context, realmName, id string) error
func (*KeycloakClient) DeleteDefaultGroup ¶
func (keycloakClient *KeycloakClient) DeleteDefaultGroup(ctx context.Context, realmName, groupId string) error
DeleteDefaultGroup deletes a group ID from the realm default groups.
func (*KeycloakClient) DeleteGenericProtocolMapper ¶
func (*KeycloakClient) DeleteGroup ¶
func (keycloakClient *KeycloakClient) DeleteGroup(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteIdentityProvider ¶
func (keycloakClient *KeycloakClient) DeleteIdentityProvider(ctx context.Context, realm, alias string) error
func (*KeycloakClient) DeleteIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) DeleteIdentityProviderMapper(ctx context.Context, realm, alias, id string) error
func (*KeycloakClient) DeleteLdapCustomMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapCustomMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapFullNameMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapFullNameMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapGroupMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapGroupMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapHardcodedAttributeMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapHardcodedAttributeMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapHardcodedGroupMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapHardcodedGroupMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapHardcodedRoleMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapHardcodedRoleMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapMsadLdsUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapMsadLdsUserAccountControlMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapMsadUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapMsadUserAccountControlMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapRoleMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapRoleMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapUserAttributeMapper ¶
func (keycloakClient *KeycloakClient) DeleteLdapUserAttributeMapper(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapUserFederation ¶
func (keycloakClient *KeycloakClient) DeleteLdapUserFederation(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteLdapUserFederationMappers ¶
func (keycloakClient *KeycloakClient) DeleteLdapUserFederationMappers(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteOpenIdAudienceProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdAudienceProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdAudienceResolveProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdAudienceResolveProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdFullNameProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdFullNameProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdGroupMembershipProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdGroupMembershipProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdHardcodedClaimProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedClaimProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdHardcodedRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdHardcodedRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdUserClientRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdUserClientRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdUserRealmRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdUserRealmRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenIdUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteOpenIdUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteOpenidClient ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClient(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationAggregatePolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationAggregatePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationClientPolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationClientPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationGroupPolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationGroupPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationJSPolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationJSPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationPermission ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationPermission(ctx context.Context, realmId, resourceServerId, permissionId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationResource ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationResource(ctx context.Context, realmId, clientId, resourceId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationRolePolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationRolePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationScope ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationScope(ctx context.Context, realmId, resourceServerId, scopeId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationTimePolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationTimePolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientAuthorizationUserPolicy ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientAuthorizationUserPolicy(ctx context.Context, realmId, resourceServerId, policyId string) error
func (*KeycloakClient) DeleteOpenidClientScope ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientScope(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteOpenidClientServiceAccountRealmRole ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRealmRole(ctx context.Context, realm, serviceAccountUserId, roleId string) error
func (*KeycloakClient) DeleteOpenidClientServiceAccountRole ¶
func (keycloakClient *KeycloakClient) DeleteOpenidClientServiceAccountRole(ctx context.Context, realm, serviceAccountUserId, clientId, roleId string) error
func (*KeycloakClient) DeleteRealm ¶
func (keycloakClient *KeycloakClient) DeleteRealm(ctx context.Context, name string) error
func (*KeycloakClient) DeleteRealmKeystoreAesGenerated ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreAesGenerated(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreEcdsaGenerated ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreEcdsaGenerated(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreHmacGenerated ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreHmacGenerated(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreJavaKeystore ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreJavaKeystore(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreRsa ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsa(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreRsaEncGenerated ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsaEncGenerated(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRealmKeystoreRsaGenerated ¶
func (keycloakClient *KeycloakClient) DeleteRealmKeystoreRsaGenerated(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRequiredAction ¶
func (*KeycloakClient) DeleteRole ¶
func (keycloakClient *KeycloakClient) DeleteRole(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteRoleScopeMapping ¶
func (*KeycloakClient) DeleteSamlClient ¶
func (keycloakClient *KeycloakClient) DeleteSamlClient(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteSamlClientScope ¶
func (keycloakClient *KeycloakClient) DeleteSamlClientScope(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DeleteSamlHardcodedAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteSamlHardcodedAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteSamlScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteSamlScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteSamlUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteSamlUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteSamlUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteSamlUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteSamlUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) DeleteSamlUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) error
func (*KeycloakClient) DeleteUser ¶
func (keycloakClient *KeycloakClient) DeleteUser(ctx context.Context, realmId, id string) error
func (*KeycloakClient) DetachOpenidClientDefaultScopes ¶
func (*KeycloakClient) DetachOpenidClientOptionalScopes ¶
func (*KeycloakClient) DetachSamlClientDefaultScopes ¶
func (*KeycloakClient) DisableGroupPermissions ¶
func (keycloakClient *KeycloakClient) DisableGroupPermissions(ctx context.Context, realmId, groupId string) error
func (*KeycloakClient) DisableIdentityProviderPermissions ¶
func (keycloakClient *KeycloakClient) DisableIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) error
func (*KeycloakClient) DisableOpenidClientPermissions ¶
func (keycloakClient *KeycloakClient) DisableOpenidClientPermissions(ctx context.Context, realmId, clientId string) error
func (*KeycloakClient) DisableUsersPermissions ¶
func (keycloakClient *KeycloakClient) DisableUsersPermissions(ctx context.Context, realmId string) error
func (*KeycloakClient) EnableGroupPermissions ¶
func (keycloakClient *KeycloakClient) EnableGroupPermissions(ctx context.Context, realmId, groupId string) error
func (*KeycloakClient) EnableIdentityProviderPermissions ¶
func (keycloakClient *KeycloakClient) EnableIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) error
func (*KeycloakClient) EnableOpenidClientPermissions ¶
func (keycloakClient *KeycloakClient) EnableOpenidClientPermissions(ctx context.Context, realmId, clientId string) error
func (*KeycloakClient) EnableUsersPermissions ¶
func (keycloakClient *KeycloakClient) EnableUsersPermissions(ctx context.Context, realmId string) error
func (*KeycloakClient) GetAuthenticationExecution ¶
func (keycloakClient *KeycloakClient) GetAuthenticationExecution(ctx context.Context, realmId, parentFlowAlias, id string) (*AuthenticationExecution, error)
func (*KeycloakClient) GetAuthenticationExecutionConfig ¶
func (keycloakClient *KeycloakClient) GetAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_getauthenticatorconfig
func (*KeycloakClient) GetAuthenticationExecutionInfoFromProviderId ¶
func (keycloakClient *KeycloakClient) GetAuthenticationExecutionInfoFromProviderId(ctx context.Context, realmId, parentFlowAlias, providerId string) (*AuthenticationExecutionInfo, error)
func (*KeycloakClient) GetAuthenticationFlow ¶
func (keycloakClient *KeycloakClient) GetAuthenticationFlow(ctx context.Context, realmId, id string) (*AuthenticationFlow, error)
func (*KeycloakClient) GetAuthenticationFlowFromAlias ¶
func (keycloakClient *KeycloakClient) GetAuthenticationFlowFromAlias(ctx context.Context, realmId, alias string) (*AuthenticationFlow, error)
func (*KeycloakClient) GetAuthenticationSubFlow ¶
func (keycloakClient *KeycloakClient) GetAuthenticationSubFlow(ctx context.Context, realmId, parentFlowAlias, id string) (*AuthenticationSubFlow, error)
func (*KeycloakClient) GetClientAuthorizationPolicyByName ¶
func (keycloakClient *KeycloakClient) GetClientAuthorizationPolicyByName(ctx context.Context, realmId, resourceServerId, name string) (*OpenidClientAuthorizationPolicy, error)
func (*KeycloakClient) GetClientRoleUsers ¶
func (keycloakClient *KeycloakClient) GetClientRoleUsers(ctx context.Context, realmId string, roles []*Role) (*[]UsersInRole, error)
func (*KeycloakClient) GetClientRoles ¶
func (keycloakClient *KeycloakClient) GetClientRoles(ctx context.Context, realmId string, clients []*OpenidClient) ([]*Role, error)
func (*KeycloakClient) GetCustomIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) GetCustomIdentityProviderMapper(ctx context.Context, realm, alias, id string) (*CustomIdentityProviderMapper, error)
func (*KeycloakClient) GetCustomUserFederation ¶
func (keycloakClient *KeycloakClient) GetCustomUserFederation(ctx context.Context, realmName, id string) (*CustomUserFederation, error)
func (*KeycloakClient) GetCustomUserFederations ¶
func (keycloakClient *KeycloakClient) GetCustomUserFederations(ctx context.Context, realmName, realmId string) (*[]CustomUserFederation, error)
func (*KeycloakClient) GetDefaultGroups ¶
func (keycloakClient *KeycloakClient) GetDefaultGroups(ctx context.Context, realmName string) ([]Group, error)
GetDefaultGroups returns all the default groups for a realm.
func (*KeycloakClient) GetDefaultRoles ¶
func (*KeycloakClient) GetFlattenedGroupsHierarchy ¶
func (*KeycloakClient) GetGenericClient ¶
func (keycloakClient *KeycloakClient) GetGenericClient(ctx context.Context, realmId, id string) (*GenericClient, error)
func (*KeycloakClient) GetGenericClientByClientId ¶
func (keycloakClient *KeycloakClient) GetGenericClientByClientId(ctx context.Context, realmId, clientId string) (*GenericClient, error)
func (*KeycloakClient) GetGenericProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetGenericProtocolMapper(ctx context.Context, realmId string, clientId string, clientScopeId string, mapperId string) (*GenericProtocolMapper, error)
func (*KeycloakClient) GetGenericProtocolMappers ¶
func (keycloakClient *KeycloakClient) GetGenericProtocolMappers(ctx context.Context, realmId string, clientId string) (*OpenidClientWithGenericProtocolMappers, error)
func (*KeycloakClient) GetGroupByName ¶
func (*KeycloakClient) GetGroupMembers ¶
func (*KeycloakClient) GetGroupPermissions ¶
func (keycloakClient *KeycloakClient) GetGroupPermissions(ctx context.Context, realmId, groupId string) (*GroupPermissions, error)
func (*KeycloakClient) GetGroupRoleMappings ¶
func (keycloakClient *KeycloakClient) GetGroupRoleMappings(ctx context.Context, realmId string, userId string) (*RoleMapping, error)
func (*KeycloakClient) GetIdentityProvider ¶
func (keycloakClient *KeycloakClient) GetIdentityProvider(ctx context.Context, realm, alias string) (*IdentityProvider, error)
func (*KeycloakClient) GetIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) GetIdentityProviderMapper(ctx context.Context, realm, alias, id string) (*IdentityProviderMapper, error)
func (*KeycloakClient) GetIdentityProviderMappers ¶
func (keycloakClient *KeycloakClient) GetIdentityProviderMappers(ctx context.Context, realm, alias string) ([]*IdentityProviderMapper, error)
func (*KeycloakClient) GetIdentityProviderPermissions ¶
func (keycloakClient *KeycloakClient) GetIdentityProviderPermissions(ctx context.Context, realmId, providerAlias string) (*IdentityProviderPermissions, error)
func (*KeycloakClient) GetLdapCustomMapper ¶
func (keycloakClient *KeycloakClient) GetLdapCustomMapper(ctx context.Context, realmId, id string) (*LdapCustomMapper, error)
func (*KeycloakClient) GetLdapFullNameMapper ¶
func (keycloakClient *KeycloakClient) GetLdapFullNameMapper(ctx context.Context, realmId, id string) (*LdapFullNameMapper, error)
func (*KeycloakClient) GetLdapGroupMapper ¶
func (keycloakClient *KeycloakClient) GetLdapGroupMapper(ctx context.Context, realmId, id string) (*LdapGroupMapper, error)
func (*KeycloakClient) GetLdapHardcodedAttributeMapper ¶
func (keycloakClient *KeycloakClient) GetLdapHardcodedAttributeMapper(ctx context.Context, realmId, id string) (*LdapHardcodedAttributeMapper, error)
func (*KeycloakClient) GetLdapHardcodedGroupMapper ¶
func (keycloakClient *KeycloakClient) GetLdapHardcodedGroupMapper(ctx context.Context, realmId, id string) (*LdapHardcodedGroupMapper, error)
func (*KeycloakClient) GetLdapHardcodedRoleMapper ¶
func (keycloakClient *KeycloakClient) GetLdapHardcodedRoleMapper(ctx context.Context, realmId, id string) (*LdapHardcodedRoleMapper, error)
func (*KeycloakClient) GetLdapMsadLdsUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) GetLdapMsadLdsUserAccountControlMapper(ctx context.Context, realmId, id string) (*LdapMsadLdsUserAccountControlMapper, error)
func (*KeycloakClient) GetLdapMsadUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) GetLdapMsadUserAccountControlMapper(ctx context.Context, realmId, id string) (*LdapMsadUserAccountControlMapper, error)
func (*KeycloakClient) GetLdapRoleMapper ¶
func (keycloakClient *KeycloakClient) GetLdapRoleMapper(ctx context.Context, realmId, id string) (*LdapRoleMapper, error)
func (*KeycloakClient) GetLdapUserAttributeMapper ¶
func (keycloakClient *KeycloakClient) GetLdapUserAttributeMapper(ctx context.Context, realmId, id string) (*LdapUserAttributeMapper, error)
func (*KeycloakClient) GetLdapUserFederation ¶
func (keycloakClient *KeycloakClient) GetLdapUserFederation(ctx context.Context, realmId, id string) (*LdapUserFederation, error)
func (*KeycloakClient) GetLdapUserFederationMappers ¶
func (keycloakClient *KeycloakClient) GetLdapUserFederationMappers(ctx context.Context, realmId, id string) (*[]interface{}, error)
func (*KeycloakClient) GetOpenIdAudienceProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdAudienceProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdAudienceProtocolMapper, error)
func (*KeycloakClient) GetOpenIdAudienceResolveProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdAudienceResolveProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdAudienceResolveProtocolMapper, error)
func (*KeycloakClient) GetOpenIdFullNameProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdFullNameProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdFullNameProtocolMapper, error)
func (*KeycloakClient) GetOpenIdGroupMembershipProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdGroupMembershipProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdGroupMembershipProtocolMapper, error)
func (*KeycloakClient) GetOpenIdHardcodedClaimProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdHardcodedClaimProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedClaimProtocolMapper, error)
func (*KeycloakClient) GetOpenIdHardcodedRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdHardcodedRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdHardcodedRoleProtocolMapper, error)
func (*KeycloakClient) GetOpenIdScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdScriptProtocolMapper, error)
func (*KeycloakClient) GetOpenIdUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserAttributeProtocolMapper, error)
func (*KeycloakClient) GetOpenIdUserClientRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdUserClientRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserClientRoleProtocolMapper, error)
func (*KeycloakClient) GetOpenIdUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserPropertyProtocolMapper, error)
func (*KeycloakClient) GetOpenIdUserRealmRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdUserRealmRoleProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserRealmRoleProtocolMapper, error)
func (*KeycloakClient) GetOpenIdUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetOpenIdUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*OpenIdUserSessionNoteProtocolMapper, error)
func (*KeycloakClient) GetOpenidClient ¶
func (keycloakClient *KeycloakClient) GetOpenidClient(ctx context.Context, realmId, id string) (*OpenidClient, error)
func (*KeycloakClient) GetOpenidClientAuthorizationAggregatePolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationAggregatePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationAggregatePolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationClientPolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationClientPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationClientPolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationGroupPolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationGroupPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationGroupPolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationJSPolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationJSPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationJSPolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationPermission ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationPermission(ctx context.Context, realm, resourceServerId, id string) (*OpenidClientAuthorizationPermission, error)
func (*KeycloakClient) GetOpenidClientAuthorizationResource ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResource(ctx context.Context, realm, resourceServerId, resourceId string) (*OpenidClientAuthorizationResource, error)
func (*KeycloakClient) GetOpenidClientAuthorizationResourceByName ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationResourceByName(ctx context.Context, realmId, resourceServerId, name string) (*OpenidClientAuthorizationResource, error)
func (*KeycloakClient) GetOpenidClientAuthorizationRolePolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationRolePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationRolePolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationScope ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationScope(ctx context.Context, realm, resourceServerId, scopeId string) (*OpenidClientAuthorizationScope, error)
func (*KeycloakClient) GetOpenidClientAuthorizationTimePolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationTimePolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationTimePolicy, error)
func (*KeycloakClient) GetOpenidClientAuthorizationUserPolicy ¶
func (keycloakClient *KeycloakClient) GetOpenidClientAuthorizationUserPolicy(ctx context.Context, realmId, resourceServerId, policyId string) (*OpenidClientAuthorizationUserPolicy, error)
func (*KeycloakClient) GetOpenidClientByClientId ¶
func (keycloakClient *KeycloakClient) GetOpenidClientByClientId(ctx context.Context, realmId, clientId string) (*OpenidClient, error)
func (*KeycloakClient) GetOpenidClientDefaultScopes ¶
func (keycloakClient *KeycloakClient) GetOpenidClientDefaultScopes(ctx context.Context, realmId, clientId string) ([]*OpenidClientScope, error)
func (*KeycloakClient) GetOpenidClientOptionalScopes ¶
func (keycloakClient *KeycloakClient) GetOpenidClientOptionalScopes(ctx context.Context, realmId, clientId string) ([]*OpenidClientScope, error)
func (*KeycloakClient) GetOpenidClientPermissions ¶
func (keycloakClient *KeycloakClient) GetOpenidClientPermissions(ctx context.Context, realmId, clientId string) (*OpenidClientPermissions, error)
func (*KeycloakClient) GetOpenidClientScope ¶
func (keycloakClient *KeycloakClient) GetOpenidClientScope(ctx context.Context, realmId, id string) (*OpenidClientScope, error)
func (*KeycloakClient) GetOpenidClientServiceAccountClientRoles ¶
func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountClientRoles(ctx context.Context, realm, serviceAccountUserId, clientId string) ([]*OpenidClientServiceAccountRole, error)
func (*KeycloakClient) GetOpenidClientServiceAccountRealmRole ¶
func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRole(ctx context.Context, realm, serviceAccountUserId, roleId string) (*OpenidClientServiceAccountRealmRole, error)
func (*KeycloakClient) GetOpenidClientServiceAccountRealmRoles ¶
func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRealmRoles(ctx context.Context, realm, serviceAccountUserId string) ([]*OpenidClientServiceAccountRole, error)
func (*KeycloakClient) GetOpenidClientServiceAccountRole ¶
func (keycloakClient *KeycloakClient) GetOpenidClientServiceAccountRole(ctx context.Context, realm, serviceAccountUserId, clientId, roleId string) (*OpenidClientServiceAccountRole, error)
func (*KeycloakClient) GetOpenidClientServiceAccountUserId ¶
func (*KeycloakClient) GetOpenidClients ¶
func (keycloakClient *KeycloakClient) GetOpenidClients(ctx context.Context, realmId string, withSecrets bool) ([]*OpenidClient, error)
func (*KeycloakClient) GetOpenidDefaultClientScopes ¶
func (keycloakClient *KeycloakClient) GetOpenidDefaultClientScopes(ctx context.Context, realmId, clientId string) (*[]OpenidClientScope, error)
func (*KeycloakClient) GetOpenidOptionalClientScopes ¶
func (keycloakClient *KeycloakClient) GetOpenidOptionalClientScopes(ctx context.Context, realmId, clientId string) (*[]OpenidClientScope, error)
func (*KeycloakClient) GetRealmDefaultClientScopes ¶
func (keycloakClient *KeycloakClient) GetRealmDefaultClientScopes(ctx context.Context, realmId string) ([]*OpenidClientScope, error)
func (*KeycloakClient) GetRealmEventsConfig ¶
func (keycloakClient *KeycloakClient) GetRealmEventsConfig(ctx context.Context, realmId string) (*RealmEventsConfig, error)
func (*KeycloakClient) GetRealmKeys ¶
func (*KeycloakClient) GetRealmKeystoreAesGenerated ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreAesGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreAesGenerated, error)
func (*KeycloakClient) GetRealmKeystoreEcdsaGenerated ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreEcdsaGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreEcdsaGenerated, error)
func (*KeycloakClient) GetRealmKeystoreHmacGenerated ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreHmacGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreHmacGenerated, error)
func (*KeycloakClient) GetRealmKeystoreJavaKeystore ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreJavaKeystore(ctx context.Context, realmId, id string) (*RealmKeystoreJavaKeystore, error)
func (*KeycloakClient) GetRealmKeystoreRsa ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreRsa(ctx context.Context, realmId, id string) (*RealmKeystoreRsa, error)
func (*KeycloakClient) GetRealmKeystoreRsaEncGenerated ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreRsaEncGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreRsaEncGenerated, error)
func (*KeycloakClient) GetRealmKeystoreRsaGenerated ¶
func (keycloakClient *KeycloakClient) GetRealmKeystoreRsaGenerated(ctx context.Context, realmId, id string) (*RealmKeystoreRsaGenerated, error)
func (*KeycloakClient) GetRealmOptionalClientScopes ¶
func (keycloakClient *KeycloakClient) GetRealmOptionalClientScopes(ctx context.Context, realmId string) ([]*OpenidClientScope, error)
func (*KeycloakClient) GetRealmRoles ¶
func (*KeycloakClient) GetRealmUserProfile ¶
func (keycloakClient *KeycloakClient) GetRealmUserProfile(ctx context.Context, realmId string) (*RealmUserProfile, error)
func (*KeycloakClient) GetRealms ¶
func (keycloakClient *KeycloakClient) GetRealms(ctx context.Context) ([]*Realm, error)
func (*KeycloakClient) GetRequiredAction ¶
func (keycloakClient *KeycloakClient) GetRequiredAction(ctx context.Context, realmId string, alias string) (*RequiredAction, error)
func (*KeycloakClient) GetRequiredActions ¶
func (keycloakClient *KeycloakClient) GetRequiredActions(ctx context.Context, realmId string) ([]*RequiredAction, error)
func (*KeycloakClient) GetRoleByName ¶
func (*KeycloakClient) GetRoleComposites ¶
func (*KeycloakClient) GetRoleScopeMapping ¶
func (*KeycloakClient) GetSamlClient ¶
func (keycloakClient *KeycloakClient) GetSamlClient(ctx context.Context, realmId, id string) (*SamlClient, error)
func (*KeycloakClient) GetSamlClientByClientId ¶
func (keycloakClient *KeycloakClient) GetSamlClientByClientId(ctx context.Context, realmId, clientId string) (*SamlClient, error)
func (*KeycloakClient) GetSamlClientDefaultScopes ¶
func (keycloakClient *KeycloakClient) GetSamlClientDefaultScopes(ctx context.Context, realmId, clientId string) ([]*SamlClientScope, error)
func (*KeycloakClient) GetSamlClientInstallationProvider ¶
func (*KeycloakClient) GetSamlClientScope ¶
func (keycloakClient *KeycloakClient) GetSamlClientScope(ctx context.Context, realmId, id string) (*SamlClientScope, error)
func (*KeycloakClient) GetSamlDefaultClientScopes ¶
func (keycloakClient *KeycloakClient) GetSamlDefaultClientScopes(ctx context.Context, realmId, clientId string) (*[]SamlClientScope, error)
func (*KeycloakClient) GetSamlHardcodedAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetSamlHardcodedAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlHardcodedAttributeProtocolMapper, error)
func (*KeycloakClient) GetSamlScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetSamlScriptProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlScriptProtocolMapper, error)
func (*KeycloakClient) GetSamlUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetSamlUserAttributeProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserAttributeProtocolMapper, error)
func (*KeycloakClient) GetSamlUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetSamlUserPropertyProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserPropertyProtocolMapper, error)
func (*KeycloakClient) GetSamlUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) GetSamlUserSessionNoteProtocolMapper(ctx context.Context, realmId, clientId, clientScopeId, mapperId string) (*SamlUserSessionNoteProtocolMapper, error)
func (*KeycloakClient) GetServerInfo ¶
func (keycloakClient *KeycloakClient) GetServerInfo(ctx context.Context) (*ServerInfo, error)
func (*KeycloakClient) GetUnregisteredRequiredActions ¶
func (keycloakClient *KeycloakClient) GetUnregisteredRequiredActions(ctx context.Context, realmId string) ([]*RequiredAction, error)
func (*KeycloakClient) GetUserByUsername ¶
func (*KeycloakClient) GetUserGroups ¶
func (*KeycloakClient) GetUserRoleMappings ¶
func (keycloakClient *KeycloakClient) GetUserRoleMappings(ctx context.Context, realmId string, userId string) (*RoleMapping, error)
func (*KeycloakClient) GetUsersPermissions ¶
func (keycloakClient *KeycloakClient) GetUsersPermissions(ctx context.Context, realmId string) (*UsersPermissions, error)
func (*KeycloakClient) ListAuthenticationExecutions ¶
func (keycloakClient *KeycloakClient) ListAuthenticationExecutions(ctx context.Context, realmId, parentFlowAlias string) (AuthenticationExecutionList, error)
func (*KeycloakClient) ListAuthenticationFlows ¶
func (keycloakClient *KeycloakClient) ListAuthenticationFlows(ctx context.Context, realmId string) ([]*AuthenticationFlow, error)
func (*KeycloakClient) ListGroupsWithName ¶
func (*KeycloakClient) ListOpenidClientScopesWithFilter ¶
func (keycloakClient *KeycloakClient) ListOpenidClientScopesWithFilter(ctx context.Context, realmId string, filter OpenidClientScopeFilterFunc) ([]*OpenidClientScope, error)
func (*KeycloakClient) ListSamlClientScopesWithFilter ¶
func (keycloakClient *KeycloakClient) ListSamlClientScopesWithFilter(ctx context.Context, realmId string, filter SamlClientScopeFilterFunc) ([]*SamlClientScope, error)
func (*KeycloakClient) LowerAuthenticationExecutionPriority ¶
func (keycloakClient *KeycloakClient) LowerAuthenticationExecutionPriority(ctx context.Context, realmId, id string) error
func (*KeycloakClient) LowerAuthenticationSubFlowPriority ¶
func (keycloakClient *KeycloakClient) LowerAuthenticationSubFlowPriority(ctx context.Context, realmId, parentFlowAlias, id string) error
func (*KeycloakClient) NewAuthenticationExecution ¶
func (keycloakClient *KeycloakClient) NewAuthenticationExecution(ctx context.Context, execution *AuthenticationExecution) error
func (*KeycloakClient) NewAuthenticationExecutionConfig ¶
func (keycloakClient *KeycloakClient) NewAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) (string, error)
https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_newexecutionconfig
func (*KeycloakClient) NewAuthenticationFlow ¶
func (keycloakClient *KeycloakClient) NewAuthenticationFlow(ctx context.Context, authenticationFlow *AuthenticationFlow) error
func (*KeycloakClient) NewAuthenticationSubFlow ¶
func (keycloakClient *KeycloakClient) NewAuthenticationSubFlow(ctx context.Context, authenticationSubFlow *AuthenticationSubFlow) error
func (*KeycloakClient) NewCustomIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) NewCustomIdentityProviderMapper(ctx context.Context, customIdentityProviderMapper *CustomIdentityProviderMapper) error
func (*KeycloakClient) NewCustomUserFederation ¶
func (keycloakClient *KeycloakClient) NewCustomUserFederation(ctx context.Context, realmId string, customUserFederation *CustomUserFederation) error
func (*KeycloakClient) NewGenericClientDescription ¶
func (keycloakClient *KeycloakClient) NewGenericClientDescription(ctx context.Context, realmId string, body string) (*GenericClientRepresentation, error)
func (*KeycloakClient) NewGenericProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewGenericProtocolMapper(ctx context.Context, genericProtocolMapper *GenericProtocolMapper) error
func (*KeycloakClient) NewGroup ¶
func (keycloakClient *KeycloakClient) NewGroup(ctx context.Context, 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(ctx context.Context, identityProvider *IdentityProvider) error
func (*KeycloakClient) NewIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) NewIdentityProviderMapper(ctx context.Context, identityProviderMapper *IdentityProviderMapper) error
func (*KeycloakClient) NewLdapCustomMapper ¶
func (keycloakClient *KeycloakClient) NewLdapCustomMapper(ctx context.Context, ldapCustomMapper *LdapCustomMapper) error
func (*KeycloakClient) NewLdapFullNameMapper ¶
func (keycloakClient *KeycloakClient) NewLdapFullNameMapper(ctx context.Context, ldapFullNameMapper *LdapFullNameMapper) error
func (*KeycloakClient) NewLdapGroupMapper ¶
func (keycloakClient *KeycloakClient) NewLdapGroupMapper(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
func (*KeycloakClient) NewLdapHardcodedAttributeMapper ¶
func (keycloakClient *KeycloakClient) NewLdapHardcodedAttributeMapper(ctx context.Context, ldapMapper *LdapHardcodedAttributeMapper) error
func (*KeycloakClient) NewLdapHardcodedGroupMapper ¶
func (keycloakClient *KeycloakClient) NewLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
func (*KeycloakClient) NewLdapHardcodedRoleMapper ¶
func (keycloakClient *KeycloakClient) NewLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
func (*KeycloakClient) NewLdapMsadLdsUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) NewLdapMsadLdsUserAccountControlMapper(ctx context.Context, ldapMsadLdsUserAccountControlMapper *LdapMsadLdsUserAccountControlMapper) error
func (*KeycloakClient) NewLdapMsadUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) NewLdapMsadUserAccountControlMapper(ctx context.Context, ldapMsadUserAccountControlMapper *LdapMsadUserAccountControlMapper) error
func (*KeycloakClient) NewLdapRoleMapper ¶
func (keycloakClient *KeycloakClient) NewLdapRoleMapper(ctx context.Context, ldapRoleMapper *LdapRoleMapper) error
func (*KeycloakClient) NewLdapUserAttributeMapper ¶
func (keycloakClient *KeycloakClient) NewLdapUserAttributeMapper(ctx context.Context, ldapUserAttributeMapper *LdapUserAttributeMapper) error
func (*KeycloakClient) NewLdapUserFederation ¶
func (keycloakClient *KeycloakClient) NewLdapUserFederation(ctx context.Context, realmId string, ldapUserFederation *LdapUserFederation) error
func (*KeycloakClient) NewOpenIdAudienceProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
func (*KeycloakClient) NewOpenIdAudienceResolveProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
func (*KeycloakClient) NewOpenIdFullNameProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
func (*KeycloakClient) NewOpenIdGroupMembershipProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
func (*KeycloakClient) NewOpenIdHardcodedClaimProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
func (*KeycloakClient) NewOpenIdHardcodedRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
func (*KeycloakClient) NewOpenIdScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
func (*KeycloakClient) NewOpenIdUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
func (*KeycloakClient) NewOpenIdUserClientRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
func (*KeycloakClient) NewOpenIdUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdUserPropertyProtocolMapper(ctx context.Context, mapper *OpenIdUserPropertyProtocolMapper) error
func (*KeycloakClient) NewOpenIdUserRealmRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
func (*KeycloakClient) NewOpenIdUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
func (*KeycloakClient) NewOpenidClient ¶
func (keycloakClient *KeycloakClient) NewOpenidClient(ctx context.Context, client *OpenidClient) error
func (*KeycloakClient) NewOpenidClientAuthorizationAggregatePolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationAggregatePolicy(ctx context.Context, policy *OpenidClientAuthorizationAggregatePolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationClientPolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationClientPolicy(ctx context.Context, policy *OpenidClientAuthorizationClientPolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationGroupPolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationGroupPolicy(ctx context.Context, policy *OpenidClientAuthorizationGroupPolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationJSPolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationJSPolicy(ctx context.Context, policy *OpenidClientAuthorizationJSPolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationPermission ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationPermission(ctx context.Context, permission *OpenidClientAuthorizationPermission) error
func (*KeycloakClient) NewOpenidClientAuthorizationResource ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationResource(ctx context.Context, resource *OpenidClientAuthorizationResource) error
func (*KeycloakClient) NewOpenidClientAuthorizationRolePolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationRolePolicy(ctx context.Context, policy *OpenidClientAuthorizationRolePolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationScope ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationScope(ctx context.Context, scope *OpenidClientAuthorizationScope) error
func (*KeycloakClient) NewOpenidClientAuthorizationTimePolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationTimePolicy(ctx context.Context, policy *OpenidClientAuthorizationTimePolicy) error
func (*KeycloakClient) NewOpenidClientAuthorizationUserPolicy ¶
func (keycloakClient *KeycloakClient) NewOpenidClientAuthorizationUserPolicy(ctx context.Context, policy *OpenidClientAuthorizationUserPolicy) error
func (*KeycloakClient) NewOpenidClientScope ¶
func (keycloakClient *KeycloakClient) NewOpenidClientScope(ctx context.Context, clientScope *OpenidClientScope) error
func (*KeycloakClient) NewOpenidClientServiceAccountRealmRole ¶
func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRealmRole(ctx context.Context, serviceAccountRole *OpenidClientServiceAccountRealmRole) error
func (*KeycloakClient) NewOpenidClientServiceAccountRole ¶
func (keycloakClient *KeycloakClient) NewOpenidClientServiceAccountRole(ctx context.Context, serviceAccountRole *OpenidClientServiceAccountRole) error
func (*KeycloakClient) NewRealm ¶
func (keycloakClient *KeycloakClient) NewRealm(ctx context.Context, realm *Realm) error
func (*KeycloakClient) NewRealmKeystoreAesGenerated ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreAesGenerated(ctx context.Context, realmKey *RealmKeystoreAesGenerated) error
func (*KeycloakClient) NewRealmKeystoreEcdsaGenerated ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreEcdsaGenerated(ctx context.Context, realmKey *RealmKeystoreEcdsaGenerated) error
func (*KeycloakClient) NewRealmKeystoreHmacGenerated ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreHmacGenerated(ctx context.Context, realmKey *RealmKeystoreHmacGenerated) error
func (*KeycloakClient) NewRealmKeystoreJavaKeystore ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreJavaKeystore(ctx context.Context, realmKey *RealmKeystoreJavaKeystore) error
func (*KeycloakClient) NewRealmKeystoreRsa ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreRsa(ctx context.Context, realmKey *RealmKeystoreRsa) error
func (*KeycloakClient) NewRealmKeystoreRsaEncGenerated ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreRsaEncGenerated(ctx context.Context, realmKey *RealmKeystoreRsaEncGenerated) error
func (*KeycloakClient) NewRealmKeystoreRsaGenerated ¶
func (keycloakClient *KeycloakClient) NewRealmKeystoreRsaGenerated(ctx context.Context, realmKey *RealmKeystoreRsaGenerated) error
func (*KeycloakClient) NewSamlClient ¶
func (keycloakClient *KeycloakClient) NewSamlClient(ctx context.Context, client *SamlClient) error
func (*KeycloakClient) NewSamlClientScope ¶
func (keycloakClient *KeycloakClient) NewSamlClientScope(ctx context.Context, clientScope *SamlClientScope) error
func (*KeycloakClient) NewSamlHardcodedAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
func (*KeycloakClient) NewSamlScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
func (*KeycloakClient) NewSamlUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
func (*KeycloakClient) NewSamlUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
func (*KeycloakClient) NewSamlUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) NewSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
func (*KeycloakClient) NewUser ¶
func (keycloakClient *KeycloakClient) NewUser(ctx context.Context, user *User) error
func (*KeycloakClient) PutDefaultGroup ¶
func (keycloakClient *KeycloakClient) PutDefaultGroup(ctx context.Context, 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(ctx context.Context, realmId, id string) error
func (*KeycloakClient) RaiseAuthenticationSubFlowPriority ¶
func (keycloakClient *KeycloakClient) RaiseAuthenticationSubFlowPriority(ctx context.Context, realmId, parentFlowAlias, id string) error
func (*KeycloakClient) RegisterRequiredAction ¶
func (keycloakClient *KeycloakClient) RegisterRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
func (*KeycloakClient) RemoveClientRolesFromGroup ¶
func (*KeycloakClient) RemoveClientRolesFromUser ¶
func (*KeycloakClient) RemoveCompositesFromRole ¶
func (*KeycloakClient) RemoveRealmRolesFromGroup ¶
func (*KeycloakClient) RemoveRealmRolesFromUser ¶
func (*KeycloakClient) RemoveUserFromGroup ¶
func (*KeycloakClient) RemoveUserFromGroups ¶
func (*KeycloakClient) RemoveUsersFromGroup ¶
func (keycloakClient *KeycloakClient) RemoveUsersFromGroup(ctx context.Context, realmId, groupId string, usernames []interface{}) error
func (*KeycloakClient) ResetUserPassword ¶
func (*KeycloakClient) UpdateAuthenticationExecution ¶
func (keycloakClient *KeycloakClient) UpdateAuthenticationExecution(ctx context.Context, execution *AuthenticationExecution) error
func (*KeycloakClient) UpdateAuthenticationExecutionConfig ¶
func (keycloakClient *KeycloakClient) UpdateAuthenticationExecutionConfig(ctx context.Context, config *AuthenticationExecutionConfig) error
https://www.keycloak.org/docs-api/8.0/rest-api/index.html#_updateauthenticatorconfig
func (*KeycloakClient) UpdateAuthenticationExecutionRequirement ¶
func (keycloakClient *KeycloakClient) UpdateAuthenticationExecutionRequirement(ctx context.Context, executionRequirementUpdate *authenticationExecutionRequirementUpdate) error
func (*KeycloakClient) UpdateAuthenticationFlow ¶
func (keycloakClient *KeycloakClient) UpdateAuthenticationFlow(ctx context.Context, authenticationFlow *AuthenticationFlow) error
func (*KeycloakClient) UpdateAuthenticationSubFlow ¶
func (keycloakClient *KeycloakClient) UpdateAuthenticationSubFlow(ctx context.Context, authenticationSubFlow *AuthenticationSubFlow) error
func (*KeycloakClient) UpdateCustomIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) UpdateCustomIdentityProviderMapper(ctx context.Context, customIdentityProviderMapper *CustomIdentityProviderMapper) error
func (*KeycloakClient) UpdateCustomUserFederation ¶
func (keycloakClient *KeycloakClient) UpdateCustomUserFederation(ctx context.Context, realmId string, customUserFederation *CustomUserFederation) error
func (*KeycloakClient) UpdateGenericProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateGenericProtocolMapper(ctx context.Context, genericProtocolMapper *GenericProtocolMapper) error
func (*KeycloakClient) UpdateGroup ¶
func (keycloakClient *KeycloakClient) UpdateGroup(ctx context.Context, group *Group) error
func (*KeycloakClient) UpdateIdentityProvider ¶
func (keycloakClient *KeycloakClient) UpdateIdentityProvider(ctx context.Context, identityProvider *IdentityProvider) error
func (*KeycloakClient) UpdateIdentityProviderMapper ¶
func (keycloakClient *KeycloakClient) UpdateIdentityProviderMapper(ctx context.Context, identityProviderMapper *IdentityProviderMapper) error
func (*KeycloakClient) UpdateLdapCustomMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapCustomMapper(ctx context.Context, ldapCustomMapper *LdapCustomMapper) error
func (*KeycloakClient) UpdateLdapFullNameMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapFullNameMapper(ctx context.Context, ldapFullNameMapper *LdapFullNameMapper) error
func (*KeycloakClient) UpdateLdapGroupMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapGroupMapper(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
func (*KeycloakClient) UpdateLdapHardcodedAttributeMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapHardcodedAttributeMapper(ctx context.Context, ldapMapper *LdapHardcodedAttributeMapper) error
func (*KeycloakClient) UpdateLdapHardcodedGroupMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
func (*KeycloakClient) UpdateLdapHardcodedRoleMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
func (*KeycloakClient) UpdateLdapMsadLdsUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapMsadLdsUserAccountControlMapper(ctx context.Context, ldapMsadLdsUserAccountControlMapper *LdapMsadLdsUserAccountControlMapper) error
func (*KeycloakClient) UpdateLdapMsadUserAccountControlMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapMsadUserAccountControlMapper(ctx context.Context, ldapMsadUserAccountControlMapper *LdapMsadUserAccountControlMapper) error
func (*KeycloakClient) UpdateLdapRoleMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapRoleMapper(ctx context.Context, ldapRoleMapper *LdapRoleMapper) error
func (*KeycloakClient) UpdateLdapUserAttributeMapper ¶
func (keycloakClient *KeycloakClient) UpdateLdapUserAttributeMapper(ctx context.Context, ldapUserAttributeMapper *LdapUserAttributeMapper) error
func (*KeycloakClient) UpdateLdapUserFederation ¶
func (keycloakClient *KeycloakClient) UpdateLdapUserFederation(ctx context.Context, realmId string, ldapUserFederation *LdapUserFederation) error
func (*KeycloakClient) UpdateOpenIdAudienceProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdAudienceResolveProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdFullNameProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdGroupMembershipProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdHardcodedClaimProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdHardcodedRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdUserClientRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdUserPropertyProtocolMapper(ctx context.Context, mapper *OpenIdUserPropertyProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdUserRealmRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
func (*KeycloakClient) UpdateOpenIdUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
func (*KeycloakClient) UpdateOpenidClient ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClient(ctx context.Context, client *OpenidClient) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationAggregatePolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationAggregatePolicy(ctx context.Context, policy *OpenidClientAuthorizationAggregatePolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationClientPolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationClientPolicy(ctx context.Context, policy *OpenidClientAuthorizationClientPolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationGroupPolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationGroupPolicy(ctx context.Context, policy *OpenidClientAuthorizationGroupPolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationJSPolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationJSPolicy(ctx context.Context, policy *OpenidClientAuthorizationJSPolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationPermission ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationPermission(ctx context.Context, permission *OpenidClientAuthorizationPermission) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationResource ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationResource(ctx context.Context, resource *OpenidClientAuthorizationResource) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationRolePolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationRolePolicy(ctx context.Context, policy *OpenidClientAuthorizationRolePolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationScope ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationScope(ctx context.Context, scope *OpenidClientAuthorizationScope) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationTimePolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationTimePolicy(ctx context.Context, policy *OpenidClientAuthorizationTimePolicy) error
func (*KeycloakClient) UpdateOpenidClientAuthorizationUserPolicy ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientAuthorizationUserPolicy(ctx context.Context, policy *OpenidClientAuthorizationUserPolicy) error
func (*KeycloakClient) UpdateOpenidClientScope ¶
func (keycloakClient *KeycloakClient) UpdateOpenidClientScope(ctx context.Context, clientScope *OpenidClientScope) error
func (*KeycloakClient) UpdateRealm ¶
func (keycloakClient *KeycloakClient) UpdateRealm(ctx context.Context, realm *Realm) error
func (*KeycloakClient) UpdateRealmEventsConfig ¶
func (keycloakClient *KeycloakClient) UpdateRealmEventsConfig(ctx context.Context, realmId string, realmEventsConfig *RealmEventsConfig) error
func (*KeycloakClient) UpdateRealmKeystoreAesGenerated ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreAesGenerated(ctx context.Context, realmKey *RealmKeystoreAesGenerated) error
func (*KeycloakClient) UpdateRealmKeystoreEcdsaGenerated ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreEcdsaGenerated(ctx context.Context, realmKey *RealmKeystoreEcdsaGenerated) error
func (*KeycloakClient) UpdateRealmKeystoreHmacGenerated ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreHmacGenerated(ctx context.Context, realmKey *RealmKeystoreHmacGenerated) error
func (*KeycloakClient) UpdateRealmKeystoreJavaKeystore ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreJavaKeystore(ctx context.Context, realmKey *RealmKeystoreJavaKeystore) error
func (*KeycloakClient) UpdateRealmKeystoreRsa ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsa(ctx context.Context, realmKey *RealmKeystoreRsa) error
func (*KeycloakClient) UpdateRealmKeystoreRsaEncGenerated ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsaEncGenerated(ctx context.Context, realmKey *RealmKeystoreRsaEncGenerated) error
func (*KeycloakClient) UpdateRealmKeystoreRsaGenerated ¶
func (keycloakClient *KeycloakClient) UpdateRealmKeystoreRsaGenerated(ctx context.Context, realmKey *RealmKeystoreRsaGenerated) error
func (*KeycloakClient) UpdateRealmUserProfile ¶
func (keycloakClient *KeycloakClient) UpdateRealmUserProfile(ctx context.Context, realmId string, realmUserProfile *RealmUserProfile) error
func (*KeycloakClient) UpdateRequiredAction ¶
func (keycloakClient *KeycloakClient) UpdateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
func (*KeycloakClient) UpdateRole ¶
func (keycloakClient *KeycloakClient) UpdateRole(ctx context.Context, role *Role) error
func (*KeycloakClient) UpdateSamlClient ¶
func (keycloakClient *KeycloakClient) UpdateSamlClient(ctx context.Context, client *SamlClient) error
func (*KeycloakClient) UpdateSamlClientScope ¶
func (keycloakClient *KeycloakClient) UpdateSamlClientScope(ctx context.Context, clientScope *SamlClientScope) error
func (*KeycloakClient) UpdateSamlHardcodedAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
func (*KeycloakClient) UpdateSamlScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
func (*KeycloakClient) UpdateSamlUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
func (*KeycloakClient) UpdateSamlUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
func (*KeycloakClient) UpdateSamlUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) UpdateSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
func (*KeycloakClient) UpdateUser ¶
func (keycloakClient *KeycloakClient) UpdateUser(ctx context.Context, user *User) error
func (*KeycloakClient) ValidateCustomUserFederation ¶
func (keycloakClient *KeycloakClient) ValidateCustomUserFederation(ctx context.Context, custom *CustomUserFederation) error
func (*KeycloakClient) ValidateGroupMembers ¶
func (keycloakClient *KeycloakClient) ValidateGroupMembers(usernames []interface{}) error
func (*KeycloakClient) ValidateLdapFullNameMapper ¶
func (keycloakClient *KeycloakClient) ValidateLdapFullNameMapper(ctx context.Context, 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(ctx context.Context, ldapGroupMapper *LdapGroupMapper) error
func (*KeycloakClient) ValidateLdapHardcodedGroupMapper ¶
func (keycloakClient *KeycloakClient) ValidateLdapHardcodedGroupMapper(ctx context.Context, ldapMapper *LdapHardcodedGroupMapper) error
func (*KeycloakClient) ValidateLdapHardcodedRoleMapper ¶
func (keycloakClient *KeycloakClient) ValidateLdapHardcodedRoleMapper(ctx context.Context, ldapMapper *LdapHardcodedRoleMapper) error
func (*KeycloakClient) ValidateLdapUserFederation ¶
func (keycloakClient *KeycloakClient) ValidateLdapUserFederation(ctx context.Context, ldap *LdapUserFederation) error
func (*KeycloakClient) ValidateOpenIdAudienceProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdAudienceProtocolMapper(ctx context.Context, mapper *OpenIdAudienceProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdAudienceResolveProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdAudienceResolveProtocolMapper(ctx context.Context, mapper *OpenIdAudienceResolveProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdFullNameProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdFullNameProtocolMapper(ctx context.Context, mapper *OpenIdFullNameProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdGroupMembershipProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdGroupMembershipProtocolMapper(ctx context.Context, mapper *OpenIdGroupMembershipProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdHardcodedClaimProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedClaimProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedClaimProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdHardcodedRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdHardcodedRoleProtocolMapper(ctx context.Context, mapper *OpenIdHardcodedRoleProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdScriptProtocolMapper(ctx context.Context, mapper *OpenIdScriptProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdUserAttributeProtocolMapper(ctx context.Context, mapper *OpenIdUserAttributeProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdUserClientRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdUserClientRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserClientRoleProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdUserRealmRoleProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdUserRealmRoleProtocolMapper(ctx context.Context, mapper *OpenIdUserRealmRoleProtocolMapper) error
func (*KeycloakClient) ValidateOpenIdUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateOpenIdUserSessionNoteProtocolMapper(ctx context.Context, mapper *OpenIdUserSessionNoteProtocolMapper) error
func (*KeycloakClient) ValidateOpenidClient ¶
func (keycloakClient *KeycloakClient) ValidateOpenidClient(ctx context.Context, client *OpenidClient) error
func (*KeycloakClient) ValidateRealm ¶
func (keycloakClient *KeycloakClient) ValidateRealm(ctx context.Context, realm *Realm) error
func (*KeycloakClient) ValidateRequiredAction ¶
func (keycloakClient *KeycloakClient) ValidateRequiredAction(ctx context.Context, requiredAction *RequiredAction) error
func (*KeycloakClient) ValidateSamlHardcodedAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateSamlHardcodedAttributeProtocolMapper(ctx context.Context, mapper *SamlHardcodedAttributeProtocolMapper) error
func (*KeycloakClient) ValidateSamlScriptProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateSamlScriptProtocolMapper(ctx context.Context, mapper *SamlScriptProtocolMapper) error
func (*KeycloakClient) ValidateSamlUserAttributeProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateSamlUserAttributeProtocolMapper(ctx context.Context, mapper *SamlUserAttributeProtocolMapper) error
func (*KeycloakClient) ValidateSamlUserPropertyProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateSamlUserPropertyProtocolMapper(ctx context.Context, mapper *SamlUserPropertyProtocolMapper) error
func (*KeycloakClient) ValidateSamlUserSessionNoteProtocolMapper ¶
func (keycloakClient *KeycloakClient) ValidateSamlUserSessionNoteProtocolMapper(ctx context.Context, mapper *SamlUserSessionNoteProtocolMapper) error
func (*KeycloakClient) Version ¶
func (KeycloakClient *KeycloakClient) Version() *version.Version
func (*KeycloakClient) VersionIsGreaterThanOrEqualTo ¶
func (*KeycloakClient) VersionIsLessThanOrEqualTo ¶
type LdapCustomMapper ¶
type LdapFullNameMapper ¶
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 LdapHardcodedRoleMapper ¶
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 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" StartTls bool UsePasswordModifyExtendedOp bool TrustEmail bool ValidatePasswordPolicy bool UseTruststoreSpi string // can be "ldapsOnly", "always", or "never" ConnectionTimeout string // duration string (ex: 1h30m) ReadTimeout string // duration string (ex: 1h30m) Pagination bool 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 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 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(ctx context.Context, keycloakClient *KeycloakClient) error
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"` 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"` FrontChannelLogoutEnabled bool `json:"frontchannelLogout"` 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 types.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"` DisplayOnConsentScreen types.KeycloakBoolQuoted `json:"display.on.consent.screen"` ConsentScreenText string `json:"consent.screen.text"` 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"` UseRefreshTokens types.KeycloakBoolQuoted `json:"use.refresh.tokens"` UseRefreshTokensClientCredentials types.KeycloakBoolQuoted `json:"client_credentials.use_refresh_token"` BackchannelLogoutUrl string `json:"backchannel.logout.url"` FrontchannelLogoutUrl string `json:"frontchannel.logout.url"` BackchannelLogoutRevokeOfflineTokens types.KeycloakBoolQuoted `json:"backchannel.logout.revoke.offline.tokens"` BackchannelLogoutSessionRequired types.KeycloakBoolQuoted `json:"backchannel.logout.session.required"` ExtraConfig map[string]interface{} `json:"-"` Oauth2DeviceAuthorizationGrantEnabled types.KeycloakBoolQuoted `json:"oauth2.device.authorization.grant.enabled"` Oauth2DeviceCodeLifespan string `json:"oauth2.device.code.lifespan,omitempty"` Oauth2DevicePollingInterval string `json:"oauth2.device.polling.interval,omitempty"` PostLogoutRedirectUris types.KeycloakSliceHashDelimited `json:"post.logout.redirect.uris,omitempty"` }
func (*OpenidClientAttributes) MarshalJSON ¶
func (f *OpenidClientAttributes) MarshalJSON() ([]byte, error)
func (*OpenidClientAttributes) UnmarshalJSON ¶
func (f *OpenidClientAttributes) UnmarshalJSON(data []byte) error
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 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"` ResourceType string `json:"resourceType,omitempty"` }
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 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 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 OpenidClientPermissionsInput ¶
type OpenidClientPermissionsInput struct {
Enabled bool `json:"enabled"`
}
type OpenidClientRole ¶
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 types.KeycloakBoolQuoted `json:"display.on.consent.screen"` // boolean in string form ConsentScreenText string `json:"consent.screen.text"` GuiOrder string `json:"gui.order"` IncludeInTokenScope types.KeycloakBoolQuoted `json:"include.in.token.scope"` // boolean in string form } `json:"attributes"` }
type OpenidClientScopeFilterFunc ¶
type OpenidClientScopeFilterFunc func(*OpenidClientScope) bool
func IncludeOpenidClientScopesMatchingNames ¶
func IncludeOpenidClientScopesMatchingNames(scopeNames []string) OpenidClientScopeFilterFunc
type OpenidClientSecret ¶
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 OpenidClientWithGenericProtocolMappers ¶
type OpenidClientWithGenericProtocolMappers struct { OpenidClient ProtocolMappers []*GenericProtocolMapper }
type PasswordCredentials ¶
type ProviderType ¶
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"` ClientSessionIdleTimeout int `json:"clientSessionIdleTimeout,omitempty"` ClientSessionMaxLifespan int `json:"clientSessionMaxLifespan,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"` Oauth2DeviceCodeLifespan int `json:"oauth2DeviceCodeLifespan,omitempty"` Oauth2DevicePollingInterval int `json:"oauth2DevicePollingInterval,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"` 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"` // OTP Policy OTPPolicyAlgorithm string `json:"otpPolicyAlgorithm,omitempty"` OTPPolicyDigits int `json:"otpPolicyDigits,omitempty"` OTPPolicyInitialCounter int `json:"otpPolicyInitialCounter,omitempty"` OTPPolicyLookAheadWindow int `json:"otpPolicyLookAheadWindow,omitempty"` OTPPolicyPeriod int `json:"otpPolicyPeriod,omitempty"` OTPPolicyType string `json:"otpPolicyType,omitempty"` // 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"` // Roles DefaultRole *Role `json:"defaultRole,omitempty"` }
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 RealmKeystoreRsa ¶
type RealmRoleRepresentation ¶
type RealmUserProfile ¶
type RealmUserProfile struct { Attributes []*RealmUserProfileAttribute `json:"attributes"` Groups []*RealmUserProfileGroup `json:"groups,omitempty"` }
type RealmUserProfileAttribute ¶
type RealmUserProfileAttribute struct { Annotations map[string]interface{} `json:"annotations,omitempty"` DisplayName string `json:"displayName,omitempty"` Group string `json:"group,omitempty"` Name string `json:"name"` Permissions *RealmUserProfilePermissions `json:"permissions,omitempty"` Required *RealmUserProfileRequired `json:"required,omitempty"` Selector *RealmUserProfileSelector `json:"selector,omitempty"` Validations map[string]RealmUserProfileValidationConfig `json:"validations,omitempty"` }
type RealmUserProfileGroup ¶
type RealmUserProfileSelector ¶
type RealmUserProfileSelector struct {
Scopes []string `json:"scopes,omitempty"`
}
type RealmUserProfileValidationConfig ¶
type RealmUserProfileValidationConfig map[string]interface{}
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 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 types.KeycloakBoolQuoted `json:"saml.authnstatement"` SignDocuments types.KeycloakBoolQuoted `json:"saml.server.signature"` SignAssertions types.KeycloakBoolQuoted `json:"saml.assertion.signature"` EncryptAssertions types.KeycloakBoolQuoted `json:"saml.encrypt"` ClientSignatureRequired types.KeycloakBoolQuoted `json:"saml.client.signature"` ForcePostBinding types.KeycloakBoolQuoted `json:"saml.force.post.binding"` ForceNameIdFormat types.KeycloakBoolQuoted `json:"saml_force_name_id_format"` SignatureAlgorithm string `json:"saml.signature.algorithm"` SignatureKeyName string `json:"saml.server.signature.keyinfo.xmlSigKeyInfoKeyNameTransformer"` CanonicalizationMethod string `json:"saml_signature_canonicalization_method"` 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"` LoginTheme string `json:"login_theme"` ExtraConfig map[string]interface{} `json:"-"` }
func (*SamlClientAttributes) MarshalJSON ¶
func (f *SamlClientAttributes) MarshalJSON() ([]byte, error)
func (*SamlClientAttributes) UnmarshalJSON ¶
func (f *SamlClientAttributes) UnmarshalJSON(data []byte) error
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 types.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 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 types.KeycloakBoolQuoted `json:"starttls,omitempty"` Auth types.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 types.KeycloakBoolQuoted `json:"ssl,omitempty"` User string `json:"user,omitempty"` Password string `json:"password,omitempty"` }
type SystemInfo ¶
type SystemInfo struct {
ServerVersion string `json:"version"`
}
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"` RequiredActions []string `json:"requiredActions"` }
type UsersInRole ¶
type UsersPermissions ¶
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" Version_13 Version = "13.0.0" Version_14 Version = "14.0.0" Version_15 Version = "15.0.0" Version_16 Version = "16.0.0" Version_17 Version = "17.0.0" Version_18 Version = "18.0.0" Version_19 Version = "19.0.0" Version_26 Version = "26.0.0" )
Source Files ¶
- authentication_execution.go
- authentication_execution_config.go
- authentication_flow.go
- authentication_subflow.go
- component.go
- custom_identity_provider_mapper.go
- custom_user_federation.go
- default_roles.go
- error.go
- extra_config.go
- generic_client.go
- generic_client_description_converter.go
- generic_protocol_mapper.go
- group.go
- group_permissions.go
- group_role_mappings.go
- identity_provider.go
- identity_provider_mapper.go
- identity_provider_permissions.go
- keycloak_client.go
- ldap_custom_mapper.go
- ldap_full_name_mapper.go
- ldap_group_mapper.go
- ldap_hardcoded_attribute_mapper.go
- ldap_hardcoded_group_mapper.go
- ldap_hardcoded_role_mapper.go
- ldap_msad_lds_user_account_control_mapper.go
- ldap_msad_user_account_control_mapper.go
- ldap_role_mapper.go
- ldap_user_attribute_mapper.go
- ldap_user_federation.go
- openid_audience_protocol_mapper.go
- openid_audience_resolve_protocol_mapper.go
- openid_client.go
- openid_client_authorization_aggregate_policy.go
- openid_client_authorization_client_policy.go
- openid_client_authorization_group_policy.go
- openid_client_authorization_js_policy.go
- openid_client_authorization_permission.go
- openid_client_authorization_policy.go
- openid_client_authorization_resource.go
- openid_client_authorization_role_policy.go
- openid_client_authorization_scope.go
- openid_client_authorization_time_policy.go
- openid_client_authorization_user_policy.go
- openid_client_permissions.go
- openid_client_scope.go
- openid_client_service_account_realm_role.go
- openid_client_service_account_role.go
- openid_full_name_protocol_mapper.go
- openid_group_membership_protocol_mapper.go
- openid_hardcoded_claim_protocol_mapper.go
- openid_hardcoded_role_protocol_mapper.go
- openid_script_protocol_mapper.go
- openid_user_attribute_protocol_mapper.go
- openid_user_client_role_protocol_mapper.go
- openid_user_property_protocol_mapper.go
- openid_user_realm_role_protocol_mapper.go
- openid_user_session_note_protocol_mapper.go
- protocol_mapper.go
- realm.go
- realm_events.go
- realm_keystore_aes_generated.go
- realm_keystore_ecdsa_generated.go
- realm_keystore_hmac_generated.go
- realm_keystore_java_keystore.go
- realm_keystore_rsa.go
- realm_keystore_rsa_enc_generated.go
- realm_keystore_rsa_generated.go
- realm_user_profile.go
- required_action.go
- role.go
- role_mapping_types.go
- role_scope_mapping.go
- saml_client.go
- saml_client_scope.go
- saml_hardcoded_attribute_protocol_mapper.go
- saml_script_protocol_mapper.go
- saml_user_attribute_protocol_mapper.go
- saml_user_property_protocol_mapper.go
- saml_user_session_note_protocol_mapper.go
- server_info.go
- user.go
- user_role_mappings.go
- users_permissions.go
- util.go
- version.go