Package de. klg71. keycloakmigration. keycloakapi
Types
Email Actions
Link copied to clipboard
Keycloak Api Exception
Link copied to clipboard
class KeycloakApiException(message: String, statusCode: Int?) : RuntimeException
Content copied to clipboard
Keycloak Client
Link copied to clipboard
Interface access resources on keycloak. Build with initKeycloakClient
Keycloak Login Client
Link copied to clipboard
Interface to get acquire tokens from keycloak. Build with initKeycloakLoginClient
Functions
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
extract Location UUID
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
init Keycloak Client
Link copied to clipboard
fun initKeycloakClient(baseUrl: String, adminUser: String, adminPassword: String, adminUseOauth: Boolean, adminUseOauthLocalPort: Int, realm: String, clientId: String, logger: Logger? = null, totp: String = "", tokenOffsetMs: Long = 1000): KeycloakClient
Content copied to clipboard
Builds the KeycloakClient
init Keycloak Login Client
Link copied to clipboard
fun initKeycloakLoginClient(baseUrl: String, logger: Logger? = null): KeycloakLoginClient
Content copied to clipboard
Builds the KeycloakLoginClient Only build this if you just need a token and don't need any other keycloak resources. initKeycloakClient automatically acquires tokens.
is Successful
Link 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
retry Default Config
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