Keycloak Client
Interface access resources on keycloak. Build with initKeycloakClient
Functions
add Child Group
Link copied to clipboard
abstract fun addChildGroup(addGroup: AddGroup, parentGroupId: UUID, realm: String): Response
Content copied to clipboard
add Client Mapper
Link copied to clipboard
abstract fun addClientMapper(clientId: UUID, addMapper: AddMapper, realm: String): Response
Content copied to clipboard
add Client Role
Link copied to clipboard
abstract fun addClientRole(addRole: AddRole, clientId: UUID, realm: String)
Content copied to clipboard
add Client Role Scope Mapping To Client
Link copied to clipboard
abstract fun addClientRoleScopeMappingToClient(roleScopeMapping: List<RoleListItem>, realm: String, id: UUID, roleClientId: UUID): Response
Content copied to clipboard
add Client Scope
Link copied to clipboard
abstract fun addClientScope(realm: String, addClientScope: AddClientScope): Response
Content copied to clipboard
add Client Scope Mapper
Link copied to clipboard
abstract fun addClientScopeMapper(clientScopeId: UUID, addMapper: AddMapper, realm: String): Response
Content copied to clipboard
add Composite To Role
Link copied to clipboard
abstract fun addCompositeToRole(roles: List<RoleListItem>, roleId: UUID, realm: String): Response
Content copied to clipboard
add Flow Execution
Link copied to clipboard
abstract fun addFlowExecution(realm: String, alias: String, addFlowExecution: AddFlowExecution): Response
Content copied to clipboard
add Identity Provider
Link copied to clipboard
abstract fun addIdentityProvider(addIdentityProvider: AddIdentityProvider, realm: String): Response
Content copied to clipboard
add Identity Provider Mapper
Link copied to clipboard
abstract fun addIdentityProviderMapper(addIdentityProviderMapper: AddIdentityProviderMapper, realm: String, alias: String): Response
Content copied to clipboard
add Realm Role Scope Mapping To Client
Link copied to clipboard
abstract fun addRealmRoleScopeMappingToClient(roleScopeMapping: List<RoleListItem>, realm: String, id: UUID): Response
Content copied to clipboard
add Simple Client
Link copied to clipboard
abstract fun addSimpleClient(addSimpleClient: AddSimpleClient, realm: String): Response
Content copied to clipboard
add User Federation
Link copied to clipboard
abstract fun addUserFederation(addUserFederation: AddUserFederation, realm: String)
Content copied to clipboard
add User Federation Mapper
Link copied to clipboard
abstract fun addUserFederationMapper(addUserFederationMapper: AddUserFederationMapper, realm: String): Response
Content copied to clipboard
assign Client Roles
Link copied to clipboard
abstract fun assignClientRoles(roles: List<AssignRole>, realm: String, userId: UUID, clientId: UUID)
Content copied to clipboard
assign Client Roles To Group
Link copied to clipboard
abstract fun assignClientRolesToGroup(roles: List<AssignRole>, realm: String, groupId: UUID, clientId: UUID)
Content copied to clipboard
assign Client Role To Client Scope
Link copied to clipboard
abstract fun assignClientRoleToClientScope(roles: List<AssignRole>, realm: String, clientScopeId: UUID, clientId: UUID): Response
Content copied to clipboard
assign Default Client Scope
Link copied to clipboard
abstract fun assignDefaultClientScope(realm: String, clientId: UUID, clientScopeId: UUID, assignClientScope: AssignClientScope): Response
Content copied to clipboard
assign Group
Link copied to clipboard
abstract fun assignGroup(assignGroup: AssignGroup, realm: String, userId: UUID, groupId: UUID)
Content copied to clipboard
assign Optional Client Scope
Link copied to clipboard
abstract fun assignOptionalClientScope(realm: String, clientId: UUID, clientScopeId: UUID, assignClientScope: AssignClientScope): Response
Content copied to clipboard
assign Realm Roles
Link copied to clipboard
abstract fun assignRealmRoles(roles: List<AssignRole>, realm: String, userId: UUID)
Content copied to clipboard
assign Realm Roles To Group
Link copied to clipboard
abstract fun assignRealmRolesToGroup(roles: List<AssignRole>, realm: String, groupId: UUID)
Content copied to clipboard
assign Realm Role To Client Scope
Link copied to clipboard
abstract fun assignRealmRoleToClientScope(roles: List<AssignRole>, realm: String, clientScopeId: UUID)
Content copied to clipboard
client Mappers
Link copied to clipboard
client Role
Link copied to clipboard
abstract fun clientRole(roleId: UUID, realm: String, clientId: UUID): Role
Content copied to clipboard
client Roles
Link copied to clipboard
abstract fun clientRoles(realm: String, clientId: UUID): List<RoleListItem>
Content copied to clipboard
client Role Scope Mappings Of Client
Link copied to clipboard
abstract fun clientRoleScopeMappingsOfClient(realm: String, id: UUID, roleClientId: UUID): List<RoleListItem>
Content copied to clipboard
clients
Link copied to clipboard
client Scope Client Roles
Link copied to clipboard
abstract fun clientScopeClientRoles(realm: String, clientScopeId: UUID, clientId: UUID): List<RoleListItem>
Content copied to clipboard
client Scope Mappers
Link copied to clipboard
abstract fun clientScopeMappers(clientScopeId: UUID, realm: String): List<Mapper>
Content copied to clipboard
client Scope Realm Roles
Link copied to clipboard
abstract fun clientScopeRealmRoles(realm: String, clientScopeId: UUID): List<RoleListItem>
Content copied to clipboard
client Scopes
Link copied to clipboard
client Secret
Link copied to clipboard
client Service Account
Link copied to clipboard
default Client Scopes
Link copied to clipboard
abstract fun defaultClientScopes(realm: String, clientId: UUID): List<ClientScopeItem>
Content copied to clipboard
delete Client
Link copied to clipboard
delete Client Mapper
Link copied to clipboard
abstract fun deleteClientMapper(clientId: UUID, mapperId: UUID, realm: String)
Content copied to clipboard
delete Client Role Scope Mapping Of Client
Link copied to clipboard
abstract fun deleteClientRoleScopeMappingOfClient(roleScopeMapping: List<RoleListItem>, realm: String, id: UUID, roleClientId: UUID): Response
Content copied to clipboard
delete Client Scope
Link copied to clipboard
abstract fun deleteClientScope(realm: String, clientScopeId: UUID): Response
Content copied to clipboard
delete Client Scope Mapper
Link copied to clipboard
abstract fun deleteClientScopeMapper(clientScopeId: UUID, mapperId: UUID, realm: String)
Content copied to clipboard
delete Flow
Link copied to clipboard
delete Flow Execution
Link copied to clipboard
delete Group
Link copied to clipboard
delete Identity Provider
Link copied to clipboard
delete Identity Provider Mapper
Link copied to clipboard
abstract fun deleteIdentityProviderMapper(realm: String, alias: String, id: String)
Content copied to clipboard
delete Mapper
Link copied to clipboard
delete Realm
Link copied to clipboard
delete Realm Role Scope Mapping Of Client
Link copied to clipboard
abstract fun deleteRealmRoleScopeMappingOfClient(roleScopeMapping: List<RoleListItem>, realm: String, id: UUID): Response
Content copied to clipboard
delete Required Action
Link copied to clipboard
abstract fun deleteRequiredAction(realm: String, alias: String): Response
Content copied to clipboard
delete Role
Link copied to clipboard
delete User
Link copied to clipboard
delete User Federation
Link copied to clipboard
delete User Federation Mapper
Link copied to clipboard
abstract fun deleteUserFederationMapper(realm: String, mapperId: UUID): Response
Content copied to clipboard
flow Executions
Link copied to clipboard
abstract fun flowExecutions(realm: String, alias: String): List<AuthenticationExecution>
Content copied to clipboard
get Authenticator Configuration
Link copied to clipboard
abstract fun getAuthenticatorConfiguration(realm: String, configurationId: String): AuthenticatorConfig
Content copied to clipboard
get Composite Child Roles
Link copied to clipboard
abstract fun getCompositeChildRoles(roleId: UUID, realm: String): List<RoleListItem>
Content copied to clipboard
group Client Roles
Link copied to clipboard
abstract fun groupClientRoles(realm: String, id: UUID, clientId: UUID): List<RoleListItem>
Content copied to clipboard
group Roles
Link copied to clipboard
identity Provider
Link copied to clipboard
abstract fun identityProvider(realm: String, alias: String): IdentityProvider
Content copied to clipboard
identity Provider Mapper
Link copied to clipboard
abstract fun identityProviderMapper(realm: String, alias: String, name: String): IdentityProviderMapper
Content copied to clipboard
identity Provider Mappers
Link copied to clipboard
abstract fun identityProviderMappers(realm: String, alias: String): List<IdentityProviderMapper>
Content copied to clipboard
identity Providers
Link copied to clipboard
import Client
Link copied to clipboard
abstract fun importClient(importClientRepresentation: ImportClientRepresentation, realm: String): Response
Content copied to clipboard
ldap Mappers
Link copied to clipboard
abstract fun ldapMappers(realm: String, ldapId: UUID): List<UserFederationMapper>
Content copied to clipboard
optional Client Scopes
Link copied to clipboard
abstract fun optionalClientScopes(realm: String, clientId: UUID): List<ClientScopeItem>
Content copied to clipboard
realm Names
Link copied to clipboard
realm Role Scope Mappings Of Client
Link copied to clipboard
abstract fun realmRoleScopeMappingsOfClient(realm: String, id: UUID): List<RoleListItem>
Content copied to clipboard
realm User Profile
Link copied to clipboard
required Action
Link copied to clipboard
abstract fun requiredAction(realm: String, alias: String): RequiredActionProviderItem
Content copied to clipboard
required Actions
Link copied to clipboard
abstract fun requiredActions(realm: String): List<RequiredActionProviderItem>
Content copied to clipboard
revoke Client Role From Client Scope
Link copied to clipboard
abstract fun revokeClientRoleFromClientScope(roles: List<AssignRole>, realm: String, clientScopeId: UUID, clientId: UUID): Response
Content copied to clipboard
revoke Client Roles
Link copied to clipboard
abstract fun revokeClientRoles(roles: List<AssignRole>, realm: String, userId: UUID, clientId: UUID)
Content copied to clipboard
revoke Client Roles From Group
Link copied to clipboard
abstract fun revokeClientRolesFromGroup(roles: List<AssignRole>, realm: String, groupId: UUID, clientId: UUID)
Content copied to clipboard
revoke Group
Link copied to clipboard
revoke Realm Role From Client Scope
Link copied to clipboard
abstract fun revokeRealmRoleFromClientScope(roles: List<AssignRole>, realm: String, clientScopeId: UUID): Response
Content copied to clipboard
revoke Realm Roles
Link copied to clipboard
abstract fun revokeRealmRoles(roles: List<AssignRole>, realm: String, userId: UUID)
Content copied to clipboard
revoke Realm Roles From Group
Link copied to clipboard
abstract fun revokeRealmRolesFromGroup(roles: List<AssignRole>, realm: String, groupId: UUID)
Content copied to clipboard
role By Name
Link copied to clipboard
role By Name Response
Link copied to clipboard
roles
Link copied to clipboard
search By Username
Link copied to clipboard
search Group
Link copied to clipboard
abstract fun searchGroup(search: String, realm: String): List<GroupListItem>
Content copied to clipboard
search User
Link copied to clipboard
search User By Query
Link copied to clipboard
update Client
Link copied to clipboard
abstract fun updateClient(clientId: UUID, updateClient: Client, realm: String): Response
Content copied to clipboard
update Flow
Link copied to clipboard
abstract fun updateFlow(realm: String, flowId: UUID, updateFlow: UpdateFlow)
Content copied to clipboard
update Flow Execution
Link copied to clipboard
abstract fun updateFlowExecution(realm: String, alias: String, updateFlowExecution: UpdateFlowExecution): Response
Content copied to clipboard
update Flow Execution With New Configuration
Link copied to clipboard
abstract fun updateFlowExecutionWithNewConfiguration(realm: String, executionId: String, authenticatorConfig: AuthenticatorConfig): Response
Content copied to clipboard
update Group
Link copied to clipboard
abstract fun updateGroup(updateGroup: UpdateGroup, realm: String, groupId: UUID): Response
Content copied to clipboard
update Identity Provider
Link copied to clipboard
abstract fun updateIdentityProvider(updateIdentityProvider: UpdateIdentityProvider, realm: String, alias: String): Response
Content copied to clipboard
update Realm
Link copied to clipboard
update Required Action
Link copied to clipboard
abstract fun updateRequiredAction(realm: String, alias: String, requiredActionProviderItem: RequiredActionProviderItem): Response
Content copied to clipboard
update Role
Link copied to clipboard
update User
Link copied to clipboard
update User Password
Link copied to clipboard
abstract fun updateUserPassword(userId: UUID, resetPassword: ResetPassword, realm: String)
Content copied to clipboard
user Client Roles
Link copied to clipboard
abstract fun userClientRoles(realm: String, userId: UUID, clientId: UUID): List<RoleListItem>
Content copied to clipboard
user Federations
Link copied to clipboard
user Groups
Link copied to clipboard
abstract fun userGroups(realm: String, id: UUID): List<UserGroupListItem>
Content copied to clipboard
withdraw Default Client Scope
Link copied to clipboard
abstract fun withdrawDefaultClientScope(realm: String, clientId: UUID, clientScopeId: UUID): Response
Content copied to clipboard
withdraw Optional Client Scope
Link copied to clipboard
abstract fun withdrawOptionalClientScope(realm: String, clientId: UUID, clientScopeId: UUID): Response
Content copied to clipboard
Extensions
client By Id
Link copied to clipboard
client Mapper Exists By Name
Link copied to clipboard
fun KeycloakClient.clientMapperExistsByName(clientId: String, mapperName: String, realm: String): Boolean
Content copied to clipboard
client Role By Name
Link copied to clipboard
fun KeycloakClient.clientRoleByName(name: String, clientId: String, realm: String): Role
Content copied to clipboard
client Scope By Name
Link copied to clipboard
fun KeycloakClient.clientScopeByName(name: String, realm: String): ClientScope
Content copied to clipboard
client Scope Mapper Exists By Name
Link copied to clipboard
fun KeycloakClient.clientScopeMapperExistsByName(clientScopeName: String, mapperName: String, realm: String): Boolean
Content copied to clipboard
client Scope UUID
Link copied to clipboard
fun KeycloakClient.clientScopeUUID(clientScopeName: String, realm: String): UUID
Content copied to clipboard
client UUID
Link copied to clipboard
executions To Import
Link copied to clipboard
fun KeycloakClient.executionsToImport(realm: String, flowAlias: String): List<AuthenticationExecutionImport>
Content copied to clipboard
exists Client
Link copied to clipboard
fun KeycloakClient.existsClient(clientId: String, realm: String): Boolean
Content copied to clipboard
exists Client Role
Link copied to clipboard
fun KeycloakClient.existsClientRole(name: String, realm: String, clientId: String): Boolean
Content copied to clipboard
exists Client Scope
Link copied to clipboard
fun KeycloakClient.existsClientScope(name: String, realm: String): Boolean
Content copied to clipboard
exists Group
Link copied to clipboard
exists Role
Link copied to clipboard
exists User
Link copied to clipboard
group By Name
Link copied to clipboard
identity Provider By Alias
Link copied to clipboard
fun KeycloakClient.identityProviderByAlias(alias: String, realm: String): IdentityProvider
Content copied to clipboard
identity Provider Exists By Alias
Link copied to clipboard
fun KeycloakClient.identityProviderExistsByAlias(alias: String, realm: String): Boolean
Content copied to clipboard
identity Provider Items
Link copied to clipboard
fun KeycloakClient.identityProviderItems(realm: String): List<IdentityProviderItem>
Content copied to clipboard
identity Provider Mapper By Name
Link copied to clipboard
fun KeycloakClient.identityProviderMapperByName(identityProviderAlias: String, name: String, realm: String): IdentityProviderMapper
Content copied to clipboard
identity Provider Mapper Exists By Name
Link copied to clipboard
fun KeycloakClient.identityProviderMapperExistsByName(identityProviderAlias: String, name: String, realm: String): Boolean
Content copied to clipboard
import Flow
Link copied to clipboard
fun KeycloakClient.importFlow(realm: String, importFlow: ImportFlow): UUID
Content copied to clipboard
ldap Mapper By Name
Link copied to clipboard
fun KeycloakClient.ldapMapperByName(ldapName: String, name: String, realm: String): UserFederationMapper
Content copied to clipboard
ldap Mapper Exists By Name
Link copied to clipboard
fun KeycloakClient.ldapMapperExistsByName(ldapName: String, name: String, realm: String): Boolean
Content copied to clipboard
realm By Id
Link copied to clipboard
realm Exists By Id
Link copied to clipboard
role Exists By Name
Link copied to clipboard
fun KeycloakClient.roleExistsByName(name: String, realm: String): Boolean
Content copied to clipboard
fun KeycloakClient.roleExistsByName(name: String, realm: String, client: String): Boolean
Content copied to clipboard
update Flow In Place
Link copied to clipboard
fun KeycloakClient.updateFlowInPlace(realm: String, alias: String, updateFlow: UpdateFlowInPlace)
Content copied to clipboard
user By Name
Link copied to clipboard
File contains a lot of convenience functions when interacting with the keycloak client
user Exists
Link copied to clipboard
user Federation By Name
Link copied to clipboard
fun KeycloakClient.userFederationByName(name: String, realm: String): UserFederation
Content copied to clipboard
user Federation Exists By Name
Link copied to clipboard
fun KeycloakClient.userFederationExistsByName(name: String, realm: String): Boolean
Content copied to clipboard