initKeycloakClient

fun initKeycloakClient(baseUrl: String, adminUser: String, adminPassword: String, realm: String, clientId: String, logger: Logger? = null, totp: String = "", tokenOffsetMs: Long = 1000): KeycloakClient

Builds the KeycloakClient

Parameters

baseUrl

base url of the keycloak instance e.g. http://localhost:8080/auth

adminUser

user to execute the migrations. executed migrations are stored in the user-attributes as hashes

adminPassword

password of the user to execute the migrations

realm

Realm to use for the login of the user

clientId

id of the client to use for the login of the user