Package de. klg71. keycloakmigration. keycloakapi. model
Types
Access Token
Link copied to clipboard
Add Client
Link copied to clipboard
data class AddClient(clientId: String, name: String?, description: String?, baseUrl: String?, surrogateAuthRequired: Boolean, enabled: Boolean, clientAuthenticatorType: String, redirectUris: List<String>, webOrigins: List<String>, notBefore: Int, bearerOnly: Boolean, consentRequired: Boolean, standardFlowEnabled: Boolean, implicitFlowEnabled: Boolean, directAccessGrantsEnabled: Boolean, serviceAccountsEnabled: Boolean, publicClient: Boolean, frontchannelLogout: Boolean, protocol: String?, attributes: Map<String, String>, authenticationFlowBindingOverrides: Map<String, List<String>>, fullScopeAllowed: Boolean, nodeReRegistrationTimeout: Int, protocolMappers: List<ProtocolMapper>?, defaultClientScopes: List<String>, optionalClientScopes: List<String>, access: ClientAccess, adminUrl: String?, rootUrl: String?)
Content copied to clipboard
Add Client Scope
Link copied to clipboard
data class AddClientScope(name: String, description: String?, protocol: String, attributes: Map<String, String>, protocolMappers: List<ProtocolMapper>?)
Content copied to clipboard
Add Flow Execution
Link copied to clipboard
Add Identity Provider
Link copied to clipboard
data class AddIdentityProvider(providerId: String, alias: String, displayName: String?, enabled: Boolean, config: Map<String, String>, trustEmail: Boolean, storeToken: Boolean, linkOnly: Boolean, firstBrokerLoginFlowAlias: String, postBrokerLoginFlowAlias: String, updateProfileFirstLoginMode: String)
Content copied to clipboard
Add Identity Provider Mapper
Link copied to clipboard
Add User Federation
Link copied to clipboard
Add User Federation Mapper
Link copied to clipboard
Assign Client Scope
Link copied to clipboard
data class AssignClientScope(client: UUID, clientScopeId: UUID, realm: String)
Content copied to clipboard
Assign Group
Link copied to clipboard
Assign Role
Link copied to clipboard
Attributes
Link copied to clipboard
Authentication Execution
Link copied to clipboard
data class AuthenticationExecution(id: UUID, requirement: Flow.Requirement, displayName: String, requirementChoices: List<Flow.Requirement>, configurable: Boolean, providerId: String, level: Int, index: Int, authenticationConfig: String?)
Content copied to clipboard
Authentication Execution Import
Link copied to clipboard
data class AuthenticationExecutionImport(requirement: Flow.Requirement, providerId: String, level: Int, index: Int, config: Map<String, String>)
Content copied to clipboard
Authenticator Config
Link copied to clipboard
Client
Link copied to clipboard
data class Client(id: UUID, clientId: String, name: String?, description: String?, surrogateAuthRequired: Boolean, enabled: Boolean, alwaysDisplayInConsole: Boolean, clientAuthenticatorType: String, redirectUris: List<String>, webOrigins: List<String>, notBefore: Int, bearerOnly: Boolean, consentRequired: Boolean, standardFlowEnabled: Boolean, implicitFlowEnabled: Boolean, directAccessGrantsEnabled: Boolean, serviceAccountsEnabled: Boolean, publicClient: Boolean, frontchannelLogout: Boolean, protocol: String?, attributes: Map<String, String>, authenticationFlowBindingOverrides: Map<String, List<String>>, fullScopeAllowed: Boolean, nodeReRegistrationTimeout: Int, protocolMappers: List<ProtocolMapper>?, defaultClientScopes: List<String>, optionalClientScopes: List<String>, access: ClientAccess, baseUrl: String?, adminUrl: String?, secret: String?, rootUrl: String?)
Content copied to clipboard
Client Access
Link copied to clipboard
data class ClientAccess(view: Boolean, configure: Boolean, manage: Boolean)
Content copied to clipboard
Client List Item
Link copied to clipboard
data class ClientListItem(id: UUID, clientId: String, name: String?, description: String?, baseUrl: String?, surrogateAuthRequired: Boolean, enabled: Boolean, clientAuthenticatorType: String, redirectUris: List<String>, webOrigins: List<String>, notBefore: Int, bearerOnly: Boolean, consentRequired: Boolean, standardFlowEnabled: Boolean, implicitFlowEnabled: Boolean, directAccessGrantsEnabled: Boolean, serviceAccountsEnabled: Boolean, publicClient: Boolean, frontchannelLogout: Boolean, protocol: String?, attributes: Map<String, String>, authenticationFlowBindingOverrides: Map<String, List<String>>, fullScopeAllowed: Boolean, nodeReRegistrationTimeout: Int, protocolMappers: List<ProtocolMapper>?, defaultClientScopes: List<String>, optionalClientScopes: List<String>, access: ClientAccess, adminUrl: String?, rootUrl: String?)
Content copied to clipboard
Client Scope
Link copied to clipboard
data class ClientScope(id: UUID, name: String, description: String?, protocol: String, attributes: Map<String, String>, protocolMappers: List<ProtocolMapper>?)
Content copied to clipboard
Client Scope Item
Link copied to clipboard
Client Secret
Link copied to clipboard
Group List Item
Link copied to clipboard
data class GroupListItem(id: UUID, name: String, path: String, subGroups: List<GroupListItem>)
Content copied to clipboard
Identity Provider
Link copied to clipboard
data class IdentityProvider(providerId: String, internalId: UUID, alias: String, displayName: String?, enabled: Boolean, config: Map<String, String>, trustEmail: Boolean, storeToken: Boolean, linkOnly: Boolean, firstBrokerLoginFlowAlias: String, postBrokerLoginFlowAlias: String, updateProfileFirstLoginMode: String)
Content copied to clipboard
Identity Provider Item
Link copied to clipboard
data class IdentityProviderItem(alias: String, displayName: String?, internalId: UUID)
Content copied to clipboard
Identity Provider Mapper
Link copied to clipboard
Identity Provider Mapper Item
Link copied to clipboard
Import Client
Link copied to clipboard
Import Client Representation
Link copied to clipboard
Import Client Representation Serializer
Link copied to clipboard
class ImportClientRepresentationSerializer : JsonSerializer<ImportClientRepresentation>
Content copied to clipboard
Import Flow
Link copied to clipboard
data class ImportFlow(alias: String, description: String, providerId: String, topLevel: Boolean, buildIn: Boolean, authenticationExecutions: List<AuthenticationExecutionImport>)
Content copied to clipboard
Protocol Mapper
Link copied to clipboard
Realm
Link copied to clipboard
data class Realm(id: String, realm: String, displayName: String?, displayNameHtml: String?, notBefore: Int, revokeRefreshToken: Boolean, refreshTokenMaxReuse: Int, accessTokenLifespan: Int, accessTokenLifespanForImplicitFlow: Int, ssoSessionIdleTimeout: Int, ssoSessionMaxLifespan: Int, ssoSessionIdleTimeoutRememberMe: Int, ssoSessionMaxLifespanRememberMe: Int, offlineSessionIdleTimeout: Int, offlineSessionMaxLifespanEnabled: Boolean, offlineSessionMaxLifespan: Int, accessCodeLifespan: Int, accessCodeLifespanUserAction: Int, accessCodeLifespanLogin: Int, actionTokenGeneratedByAdminLifespan: Int, actionTokenGeneratedByUserLifespan: Int, enabled: Boolean, sslRequired: String, registrationAllowed: Boolean, registrationEmailAsUsername: Boolean, rememberMe: Boolean, verifyEmail: Boolean, loginWithEmailAllowed: Boolean, duplicateEmailsAllowed: Boolean, resetPasswordAllowed: Boolean, editUsernameAllowed: Boolean, bruteForceProtected: Boolean, permanentLockout: Boolean, maxFailureWaitSeconds: Int, minimumQuickLoginWaitSeconds: Int, waitIncrementSeconds: Int, quickLoginCheckMilliSeconds: Int, maxDeltaTimeSeconds: Int, failureFactor: Int, requiredCredentials: List<String>, passwordPolicy: String, otpPolicyType: String, otpPolicyAlgorithm: String, otpPolicyInitialCounter: Int, otpPolicyDigits: Int, otpPolicyLookAheadWindow: Int, otpPolicyPeriod: Int, otpSupportedApplications: List<String>, webAuthnPolicyRpEntityName: String, webAuthnPolicySignatureAlgorithms: List<String>, webAuthnPolicyRpId: String, webAuthnPolicyAttestationConveyancePreference: String, webAuthnPolicyAuthenticatorAttachment: String, webAuthnPolicyRequireResidentKey: String, webAuthnPolicyUserVerificationRequirement: String, webAuthnPolicyCreateTimeout: Int, webAuthnPolicyAvoidSameAuthenticatorRegister: Boolean, webAuthnPolicyAcceptableAaguids: List<String>, browserSecurityHeaders: Map<String, String>, smtpServer: Map<String, String>, eventsEnabled: Boolean, eventsListeners: List<String>, eventsExpiration: Int, enabledEventTypes: List<String>, identityProviders: List<IdentityProviderItem>, identityProviderMappers: List<IdentityProviderMapperItem>, adminEventsEnabled: Boolean, adminEventsDetailsEnabled: Boolean, internationalizationEnabled: Boolean, supportedLocales: List<String>, defaultLocale: String, browserFlow: String, registrationFlow: String, directGrantFlow: String, resetCredentialsFlow: String, clientAuthenticationFlow: String, dockerAuthenticationFlow: String, firstBrokerLoginFlow: String?, attributes: Map<String, String>, userManagedAccessAllowed: Boolean, accountTheme: String?, adminTheme: String?, emailTheme: String?, loginTheme: String?, requiredActions: List<RequiredActionProviderItem>?, upConfig: RealmProfile?, clientProfiles: Map<String, List<String>>, clientPolicies: Map<String, List<String>>)
Content copied to clipboard
Realm Profile
Link copied to clipboard
data class RealmProfile(attributes: List<RealmAttribute>, groups: List<Map<String, String>>, unmanagedAttributePolicy: String?)
Content copied to clipboard
Realm Update Builder
Link copied to clipboard
Reset Password
Link copied to clipboard
data class ResetPassword(value: String, temporary: Boolean, type: String)
Content copied to clipboard
Role List Item
Link copied to clipboard
Update Client Builder
Link copied to clipboard
Update Flow
Link copied to clipboard
Update Flow Execution
Link copied to clipboard
data class UpdateFlowExecution(id: UUID, requirement: Flow.Requirement, level: Int, index: Int, providerId: String)
Content copied to clipboard
Update Flow In Place
Link copied to clipboard
data class UpdateFlowInPlace(newAlias: String, description: String, providerId: String, topLevel: Boolean, authenticationExecutions: List<AuthenticationExecutionImport>)
Content copied to clipboard
Update Identity Provider
Link copied to clipboard
data class UpdateIdentityProvider(internalId: UUID, providerId: String, alias: String, displayName: String?, enabled: Boolean, config: Map<String, String>, trustEmail: Boolean, storeToken: Boolean, linkOnly: Boolean, firstBrokerLoginFlowAlias: String, postBrokerLoginFlowAlias: String, updateProfileFirstLoginMode: String)
Content copied to clipboard
Update User Builder
Link copied to clipboard
User
Link copied to clipboard
data class User(id: UUID, createdTimestamp: Long, username: String, enabled: Boolean, emailVerified: Boolean, attributes: Attributes?, notBefore: Long, totp: Boolean, access: UserAccess?, disableableCredentialTypes: List<String>, requiredActions: List<String>, email: String?, firstName: String?, lastName: String?, credentials: List<UserCredential>?, federationLink: String?)
Content copied to clipboard
User Access
Link copied to clipboard
User Group List Item
Link copied to clipboard
Functions
add Client Scope
Link copied to clipboard
fun addClientScope(name: String, description: String? = null, protocol: String = "openid-connect", protocolMappers: List<ProtocolMapper>? = null, consentScreenText: String? = null, displayOnConsentScreen: Boolean = false, guiOrder: Int? = null, includeInTokenScope: Boolean = true, config: Map<String, String>? = null): AddClientScope
Content copied to clipboard
add Keycloak Identity Provider
Link copied to clipboard
fun addKeycloakIdentityProvider(authorizationUrl: String, tokenUrl: String, alias: String, clientId: String, clientSecret: String, clientAuthMethod: String = "client_secret_post", logoutUrl: String = "", userInfoUrl: String = "", issuer: String = "", defaultScopes: List<String> = emptyList(), validateSignature: String = "", forwardParameters: List<String> = emptyList(), loginHint: Boolean = false, disableUserInfo: Boolean = false, hideOnLoginPage: Boolean = false, backchannelSupported: Boolean = false, syncMode: String = "IMPORT", acceptsPromptNoneForwardFromClient: String = "", uiLocales: Boolean = true, displayName: String = "", guiOrder: String = "", enabled: Boolean = true, trustEmail: Boolean = false, useJwksUrl: Boolean = false, storeToken: Boolean = false, linkOnly: Boolean = false, firstBrokerLoginFlowAlias: String = "first broker login", postBrokerLoginFlowAlias: String = "", updateProfileFirstLoginMode: String = "on"): AddIdentityProvider
Content copied to clipboard
allow Kerberos Authentication
Link copied to clipboard
audience Mapper
Link copied to clipboard
authentication Type
Link copied to clipboard
bind Credential
Link copied to clipboard
cache Policy
Link copied to clipboard
changed Sync Period
Link copied to clipboard
connection Pooling
Link copied to clipboard
connection Timeout
Link copied to clipboard
connection Url
Link copied to clipboard
construct Ad Ldap Config
Link copied to clipboard
construct User Federation Config
Link copied to clipboard
email Address Mapper
Link copied to clipboard
fun emailAddressMapper(identityProviderAlias: String, name: String, attributeName: String): AddIdentityProviderMapper
Content copied to clipboard
from Existing
Link copied to clipboard
full Name Mapper
Link copied to clipboard
fun fullNameMapper(name: String, parentId: UUID, ldapFullNameAttribute: String, readOnly: Boolean, writeOnly: Boolean): AddUserFederationMapper
Content copied to clipboard
full Sync Period
Link copied to clipboard
given Name Mapper
Link copied to clipboard
fun givenNameMapper(identityProviderAlias: String, name: String, attributeName: String): AddIdentityProviderMapper
Content copied to clipboard
group Mapper
Link copied to clipboard
fun groupMapper(name: String, parentId: UUID, groupNameLdapAttribute: String, groupObjectClasses: List<String>, groupsDn: String, preserveGroupInheritance: Boolean, membershipLdapAttribute: String, membershipAttributeType: String, membershipUserLdapAttribute: String, filter: String, mode: String, ignoreMissingGroups: Boolean, userRolesRetrieveStrategy: String, mappedGroupAttributes: List<String>, memberofLdapAttribute: String, dropNonExistingGroupsDuringSync: Boolean, groupsPath: String): AddUserFederationMapper
Content copied to clipboard
group Membership Mapper
Link copied to clipboard
hardcoded Role Mapper
Link copied to clipboard
fun hardcodedRoleMapper(name: String, role: String, parentId: UUID): AddUserFederationMapper
Content copied to clipboard
import Users
Link copied to clipboard
ldap Filter
Link copied to clipboard
ldap Mapper
Link copied to clipboard
fun ldapMapper(name: String, config: Map<String, String>, parentId: UUID, providerId: String): AddUserFederationMapper
Content copied to clipboard
name Mapper
Link copied to clipboard
fun nameMapper(identityProviderAlias: String, name: String, attributeName: String): AddIdentityProviderMapper
Content copied to clipboard
pagination
Link copied to clipboard
patch Identity Provider
Link copied to clipboard
fun patchIdentityProvider(existingIdp: IdentityProvider, providerId: String?, alias: String?, displayName: String?, enabled: Boolean?, config: Map<String, String>?, trustEmail: Boolean?, storeToken: Boolean?, linkOnly: Boolean?, firstBrokerLoginFlowAlias: String?, postBrokerLoginFlowAlias: String?, updateProfileFirstLoginMode: String?): UpdateIdentityProvider
Content copied to clipboard
patch Idp Config
Link copied to clipboard
fun patchIdpConfig(existingIdp: IdentityProvider, newConfig: Map<String, String>?): Map<String, String>
Content copied to clipboard
patch Keycloak Identity Provider
Link copied to clipboard
fun patchKeycloakIdentityProvider(existingIdp: IdentityProvider, authorizationUrl: String? = null, tokenUrl: String? = null, alias: String? = null, clientId: String? = null, clientSecret: String? = null, clientAuthMethod: String? = null, logoutUrl: String? = null, userInfoUrl: String? = null, issuer: String? = null, defaultScopes: List<String>? = null, validateSignature: String? = null, forwardParameters: List<String>? = null, loginHint: Boolean? = null, disableUserInfo: Boolean? = null, hideOnLoginPage: Boolean? = null, backchannelSupported: Boolean? = null, syncMode: String? = null, acceptsPromptNoneForwardFromClient: String? = null, uiLocales: Boolean? = null, displayName: String? = null, guiOrder: String? = null, enabled: Boolean? = null, trustEmail: Boolean? = null, useJwksUrl: Boolean? = null, storeToken: Boolean? = null, linkOnly: Boolean? = null, firstBrokerLoginFlowAlias: String? = null, postBrokerLoginFlowAlias: String? = null, updateProfileFirstLoginMode: String? = null): UpdateIdentityProvider
Content copied to clipboard
rdn Ldap Attribute
Link copied to clipboard
read Timeout
Link copied to clipboard
role Mapper
Link copied to clipboard
fun roleMapper(identityProviderAlias: String, name: String, attributeValue: String, role: String): AddIdentityProviderMapper
Content copied to clipboard
search Scope
Link copied to clipboard
surname Mapper
Link copied to clipboard
fun surnameMapper(identityProviderAlias: String, name: String, attributeName: String): AddIdentityProviderMapper
Content copied to clipboard
translate Config
Link copied to clipboard
use Kerberos Authentication
Link copied to clipboard
user Account Control Mapper
Link copied to clipboard
fun userAccountControlMapper(name: String, parentId: UUID): AddUserFederationMapper
Content copied to clipboard
user Attribute Mapper
Link copied to clipboard
fun userAttributeMapper(name: String, parentId: UUID, userModelAttribute: String, ldapAttribute: String, readOnly: Boolean, alwaysReadFromLdap: Boolean, isMandatoryInLdap: Boolean): AddUserFederationMapper
Content copied to clipboard
username Ldap Attribute
Link copied to clipboard
user Object Classes
Link copied to clipboard
user Realm Role Mapper
Link copied to clipboard
use Truststore SPI
Link copied to clipboard
uuid Ldap Attribute
Link copied to clipboard
validate Password Policy
Link copied to clipboard
Properties
FULL_NAME_MAPPER
Link copied to clipboard
GROUP_MAPPER
Link copied to clipboard
HARDCODED_LDAP_ROLE_MAPPER
Link copied to clipboard
LDAP_STORAGE_MAPPER
Link copied to clipboard
OPENID_CONNECT_PROTOCOL
Link copied to clipboard
SAML_ATTRIBUTE_EMAILADDRESS
Link copied to clipboard
SAML_ATTRIBUTE_GIVENNAME
Link copied to clipboard
SAML_ATTRIBUTE_NAME
Link copied to clipboard
SAML_ATTRIBUTE_ROLE
Link copied to clipboard
SAML_ATTRIBUTE_SURNAME
Link copied to clipboard
SAML_ROLE_IDP_MAPPER
Link copied to clipboard
SAML_USER_ATTRIBUTE_IDP_MAPPER
Link copied to clipboard
USER_ACCOUNT_CONTROL_MAPPER
Link copied to clipboard
USER_ATTRIBUTE_MAPPER
Link copied to clipboard