Package-level declarations

Types

Link copied to clipboard
class AudienceProtocolMapper : KotlinCustomResource

Allows for creating and managing audience protocol mappers within Keycloak. Audience protocol mappers allow you to add audiences to the aud claim within issued tokens. The audience can be a custom string, or it can be mapped to the ID of a pre-existing client.

Link copied to clipboard
data class AudienceProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val includedClientAudience: Output<String>? = null, val includedCustomAudience: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<AudienceProtocolMapperArgs>

Allows for creating and managing audience protocol mappers within Keycloak. Audience protocol mappers allow you to add audiences to the aud claim within issued tokens. The audience can be a custom string, or it can be mapped to the ID of a pre-existing client.

Link copied to clipboard
Link copied to clipboard
class AudienceResolveProtocolMapper : KotlinCustomResource

Allows for creating the "Audience Resolve" OIDC protocol mapper within Keycloak. This protocol mapper is useful to avoid manual management of audiences, instead relying on the presence of client roles to imply which audiences are appropriate for the token. See the Keycloak docs for more details.

Link copied to clipboard
data class AudienceResolveProtocolMapperArgs(val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<AudienceResolveProtocolMapperArgs>

Allows for creating the "Audience Resolve" OIDC protocol mapper within Keycloak. This protocol mapper is useful to avoid manual management of audiences, instead relying on the presence of client roles to imply which audiences are appropriate for the token. See the Keycloak docs for more details.

Link copied to clipboard
class Client : KotlinCustomResource

Allows for creating and managing Keycloak clients that use the OpenID Connect protocol. Clients are entities that can use Keycloak for user authentication. Typically, clients are applications that redirect users to Keycloak for authentication in order to take advantage of Keycloak's user sessions for SSO.

Link copied to clipboard
class ClientAggregatePolicy : KotlinCustomResource
Link copied to clipboard
data class ClientAggregatePolicyArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val policies: Output<List<String>>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null) : ConvertibleToJava<ClientAggregatePolicyArgs>
Link copied to clipboard
Link copied to clipboard
data class ClientArgs(val accessTokenLifespan: Output<String>? = null, val accessType: Output<String>? = null, val adminUrl: Output<String>? = null, val alwaysDisplayInConsole: Output<Boolean>? = null, val authenticationFlowBindingOverrides: Output<ClientAuthenticationFlowBindingOverridesArgs>? = null, val authorization: Output<ClientAuthorizationArgs>? = null, val backchannelLogoutRevokeOfflineSessions: Output<Boolean>? = null, val backchannelLogoutSessionRequired: Output<Boolean>? = null, val backchannelLogoutUrl: Output<String>? = null, val baseUrl: Output<String>? = null, val clientAuthenticatorType: Output<String>? = null, val clientId: Output<String>? = null, val clientOfflineSessionIdleTimeout: Output<String>? = null, val clientOfflineSessionMaxLifespan: Output<String>? = null, val clientSecret: Output<String>? = null, val clientSessionIdleTimeout: Output<String>? = null, val clientSessionMaxLifespan: Output<String>? = null, val consentRequired: Output<Boolean>? = null, val consentScreenText: Output<String>? = null, val description: Output<String>? = null, val directAccessGrantsEnabled: Output<Boolean>? = null, val displayOnConsentScreen: Output<Boolean>? = null, val enabled: Output<Boolean>? = null, val excludeIssuerFromAuthResponse: Output<Boolean>? = null, val excludeSessionStateFromAuthResponse: Output<Boolean>? = null, val extraConfig: Output<Map<String, String>>? = null, val frontchannelLogoutEnabled: Output<Boolean>? = null, val frontchannelLogoutUrl: Output<String>? = null, val fullScopeAllowed: Output<Boolean>? = null, val implicitFlowEnabled: Output<Boolean>? = null, val import: Output<Boolean>? = null, val loginTheme: Output<String>? = null, val name: Output<String>? = null, val oauth2DeviceAuthorizationGrantEnabled: Output<Boolean>? = null, val oauth2DeviceCodeLifespan: Output<String>? = null, val oauth2DevicePollingInterval: Output<String>? = null, val pkceCodeChallengeMethod: Output<String>? = null, val realmId: Output<String>? = null, val rootUrl: Output<String>? = null, val serviceAccountsEnabled: Output<Boolean>? = null, val standardFlowEnabled: Output<Boolean>? = null, val useRefreshTokens: Output<Boolean>? = null, val useRefreshTokensClientCredentials: Output<Boolean>? = null, val validPostLogoutRedirectUris: Output<List<String>>? = null, val validRedirectUris: Output<List<String>>? = null, val webOrigins: Output<List<String>>? = null) : ConvertibleToJava<ClientArgs>

Allows for creating and managing Keycloak clients that use the OpenID Connect protocol. Clients are entities that can use Keycloak for user authentication. Typically, clients are applications that redirect users to Keycloak for authentication in order to take advantage of Keycloak's user sessions for SSO.

Link copied to clipboard

Builder for ClientArgs.

Link copied to clipboard
class ClientAuthorizationClientScopePolicy : KotlinCustomResource

Allows you to manage openid Client Authorization Client Scope type Policies.

Link copied to clipboard
data class ClientAuthorizationClientScopePolicyArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val scopes: Output<List<ClientAuthorizationClientScopePolicyScopeArgs>>? = null) : ConvertibleToJava<ClientAuthorizationClientScopePolicyArgs>

Allows you to manage openid Client Authorization Client Scope type Policies.

Link copied to clipboard
class ClientAuthorizationPermission : KotlinCustomResource

Allows you to manage openid Client Authorization Permissions.

Link copied to clipboard
data class ClientAuthorizationPermissionArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val policies: Output<List<String>>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val resourceType: Output<String>? = null, val resources: Output<List<String>>? = null, val scopes: Output<List<String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<ClientAuthorizationPermissionArgs>

Allows you to manage openid Client Authorization Permissions.

Link copied to clipboard
class ClientAuthorizationResource : KotlinCustomResource
Link copied to clipboard
data class ClientAuthorizationResourceArgs(val attributes: Output<Map<String, String>>? = null, val displayName: Output<String>? = null, val iconUri: Output<String>? = null, val name: Output<String>? = null, val ownerManagedAccess: Output<Boolean>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val scopes: Output<List<String>>? = null, val type: Output<String>? = null, val uris: Output<List<String>>? = null) : ConvertibleToJava<ClientAuthorizationResourceArgs>
Link copied to clipboard
class ClientAuthorizationScope : KotlinCustomResource
Link copied to clipboard
data class ClientAuthorizationScopeArgs(val displayName: Output<String>? = null, val iconUri: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null) : ConvertibleToJava<ClientAuthorizationScopeArgs>
Link copied to clipboard
class ClientDefaultScopes : KotlinCustomResource
Link copied to clipboard
data class ClientDefaultScopesArgs(val clientId: Output<String>? = null, val defaultScopes: Output<List<String>>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<ClientDefaultScopesArgs>
Link copied to clipboard
Link copied to clipboard
class ClientGroupPolicy : KotlinCustomResource
Link copied to clipboard
data class ClientGroupPolicyArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val groups: Output<List<ClientGroupPolicyGroupArgs>>? = null, val groupsClaim: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null) : ConvertibleToJava<ClientGroupPolicyArgs>
Link copied to clipboard
object ClientGroupPolicyMapper : ResourceMapper<ClientGroupPolicy>
Link copied to clipboard
class ClientJsPolicy : KotlinCustomResource
Link copied to clipboard
data class ClientJsPolicyArgs(val code: Output<String>? = null, val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ClientJsPolicyArgs>
Link copied to clipboard
Link copied to clipboard
object ClientJsPolicyMapper : ResourceMapper<ClientJsPolicy>
Link copied to clipboard
object ClientMapper : ResourceMapper<Client>
Link copied to clipboard
class ClientOptionalScopes : KotlinCustomResource
Link copied to clipboard
data class ClientOptionalScopesArgs(val clientId: Output<String>? = null, val optionalScopes: Output<List<String>>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<ClientOptionalScopesArgs>
Link copied to clipboard
Link copied to clipboard
class ClientPermissions : KotlinCustomResource

Allows you to manage all openid client Scope Based Permissions. This is part of a preview keycloak feature. You need to enable this feature to be able to use this resource. More information about enabling the preview feature can be found here: https://www.keycloak.org/securing-apps/token-exchange When enabling Openid Client Permissions, Keycloak does several things automatically:

Link copied to clipboard
data class ClientPermissionsArgs(val clientId: Output<String>? = null, val configureScope: Output<ClientPermissionsConfigureScopeArgs>? = null, val manageScope: Output<ClientPermissionsManageScopeArgs>? = null, val mapRolesClientScopeScope: Output<ClientPermissionsMapRolesClientScopeScopeArgs>? = null, val mapRolesCompositeScope: Output<ClientPermissionsMapRolesCompositeScopeArgs>? = null, val mapRolesScope: Output<ClientPermissionsMapRolesScopeArgs>? = null, val realmId: Output<String>? = null, val tokenExchangeScope: Output<ClientPermissionsTokenExchangeScopeArgs>? = null, val viewScope: Output<ClientPermissionsViewScopeArgs>? = null) : ConvertibleToJava<ClientPermissionsArgs>

Allows you to manage all openid client Scope Based Permissions. This is part of a preview keycloak feature. You need to enable this feature to be able to use this resource. More information about enabling the preview feature can be found here: https://www.keycloak.org/securing-apps/token-exchange When enabling Openid Client Permissions, Keycloak does several things automatically:

Link copied to clipboard
object ClientPermissionsMapper : ResourceMapper<ClientPermissions>
Link copied to clipboard
class ClientPolicy : KotlinCustomResource

This resource can be used to create client policy.

Link copied to clipboard
data class ClientPolicyArgs(val clients: Output<List<String>>? = null, val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null) : ConvertibleToJava<ClientPolicyArgs>

This resource can be used to create client policy.

Link copied to clipboard
Link copied to clipboard
object ClientPolicyMapper : ResourceMapper<ClientPolicy>
Link copied to clipboard
Link copied to clipboard

Builder for Client.

Link copied to clipboard
class ClientRolePolicy : KotlinCustomResource
Link copied to clipboard
data class ClientRolePolicyArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val roles: Output<List<ClientRolePolicyRoleArgs>>? = null, val type: Output<String>? = null) : ConvertibleToJava<ClientRolePolicyArgs>
Link copied to clipboard
object ClientRolePolicyMapper : ResourceMapper<ClientRolePolicy>
Link copied to clipboard
class ClientScope : KotlinCustomResource

Allows for creating and managing Keycloak client scopes that can be attached to clients that use the OpenID Connect protocol. Client Scopes can be used to share common protocol and role mappings between multiple clients within a realm. They can also be used by clients to conditionally request claims or roles for a user based on the OAuth 2.0 scope parameter.

Link copied to clipboard
data class ClientScopeArgs(val consentScreenText: Output<String>? = null, val description: Output<String>? = null, val guiOrder: Output<Int>? = null, val includeInTokenScope: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<ClientScopeArgs>

Allows for creating and managing Keycloak client scopes that can be attached to clients that use the OpenID Connect protocol. Client Scopes can be used to share common protocol and role mappings between multiple clients within a realm. They can also be used by clients to conditionally request claims or roles for a user based on the OAuth 2.0 scope parameter.

Link copied to clipboard
Link copied to clipboard
object ClientScopeMapper : ResourceMapper<ClientScope>
Link copied to clipboard
Link copied to clipboard
class ClientServiceAccountRealmRole : KotlinCustomResource

Allows for assigning realm roles to the service account of an openid client. You need to set service_accounts_enabled to true for the openid client that should be assigned the role. If you'd like to attach client roles to a service account, please use the keycloak.openid.ClientServiceAccountRole resource.

Link copied to clipboard
data class ClientServiceAccountRealmRoleArgs(val realmId: Output<String>? = null, val role: Output<String>? = null, val serviceAccountUserId: Output<String>? = null) : ConvertibleToJava<ClientServiceAccountRealmRoleArgs>

Allows for assigning realm roles to the service account of an openid client. You need to set service_accounts_enabled to true for the openid client that should be assigned the role. If you'd like to attach client roles to a service account, please use the keycloak.openid.ClientServiceAccountRole resource.

Link copied to clipboard
class ClientServiceAccountRole : KotlinCustomResource

Allows for assigning client roles to the service account of an openid client. You need to set service_accounts_enabled to true for the openid client that should be assigned the role. If you'd like to attach realm roles to a service account, please use the keycloak.openid.ClientServiceAccountRealmRole resource.

Link copied to clipboard
data class ClientServiceAccountRoleArgs(val clientId: Output<String>? = null, val realmId: Output<String>? = null, val role: Output<String>? = null, val serviceAccountUserId: Output<String>? = null) : ConvertibleToJava<ClientServiceAccountRoleArgs>

Allows for assigning client roles to the service account of an openid client. You need to set service_accounts_enabled to true for the openid client that should be assigned the role. If you'd like to attach realm roles to a service account, please use the keycloak.openid.ClientServiceAccountRealmRole resource.

Link copied to clipboard
class ClientTimePolicy : KotlinCustomResource
Link copied to clipboard
data class ClientTimePolicyArgs(val dayMonth: Output<String>? = null, val dayMonthEnd: Output<String>? = null, val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val hour: Output<String>? = null, val hourEnd: Output<String>? = null, val logic: Output<String>? = null, val minute: Output<String>? = null, val minuteEnd: Output<String>? = null, val month: Output<String>? = null, val monthEnd: Output<String>? = null, val name: Output<String>? = null, val notBefore: Output<String>? = null, val notOnOrAfter: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val year: Output<String>? = null, val yearEnd: Output<String>? = null) : ConvertibleToJava<ClientTimePolicyArgs>
Link copied to clipboard
object ClientTimePolicyMapper : ResourceMapper<ClientTimePolicy>
Link copied to clipboard
class ClientUserPolicy : KotlinCustomResource
Link copied to clipboard
data class ClientUserPolicyArgs(val decisionStrategy: Output<String>? = null, val description: Output<String>? = null, val logic: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val resourceServerId: Output<String>? = null, val users: Output<List<String>>? = null) : ConvertibleToJava<ClientUserPolicyArgs>
Link copied to clipboard
object ClientUserPolicyMapper : ResourceMapper<ClientUserPolicy>
Link copied to clipboard
class FullNameProtocolMapper : KotlinCustomResource

Allows for creating and managing full name protocol mappers within Keycloak. Full name protocol mappers allow you to map a user's first and last name to the OpenID Connect name claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class FullNameProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<FullNameProtocolMapperArgs>

Allows for creating and managing full name protocol mappers within Keycloak. Full name protocol mappers allow you to map a user's first and last name to the OpenID Connect name claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
Link copied to clipboard
class GroupMembershipProtocolMapper : KotlinCustomResource

Allows for creating and managing group membership protocol mappers within Keycloak. Group membership protocol mappers allow you to map a user's group memberships to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class GroupMembershipProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val fullPath: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<GroupMembershipProtocolMapperArgs>

Allows for creating and managing group membership protocol mappers within Keycloak. Group membership protocol mappers allow you to map a user's group memberships to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class HardcodedClaimProtocolMapper : KotlinCustomResource

Allows for creating and managing hardcoded claim protocol mappers within Keycloak. Hardcoded claim protocol mappers allow you to define a claim with a hardcoded value. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class HardcodedClaimProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValue: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<HardcodedClaimProtocolMapperArgs>

Allows for creating and managing hardcoded claim protocol mappers within Keycloak. Hardcoded claim protocol mappers allow you to define a claim with a hardcoded value. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class HardcodedRoleProtocolMapper : KotlinCustomResource

Allows for creating and managing hardcoded role protocol mappers within Keycloak. Hardcoded role protocol mappers allow you to specify a single role to always map to an access token for a client. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class HardcodedRoleProtocolMapperArgs(val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val roleId: Output<String>? = null) : ConvertibleToJava<HardcodedRoleProtocolMapperArgs>

Allows for creating and managing hardcoded role protocol mappers within Keycloak. Hardcoded role protocol mappers allow you to specify a single role to always map to an access token for a client. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
Link copied to clipboard
class ScriptProtocolMapper : KotlinCustomResource

Allows for creating and managing script protocol mappers within Keycloak. Script protocol mappers evaluate a JavaScript function to produce a token claim based on context information. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class ScriptProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val multivalued: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val script: Output<String>? = null) : ConvertibleToJava<ScriptProtocolMapperArgs>

Allows for creating and managing script protocol mappers within Keycloak. Script protocol mappers evaluate a JavaScript function to produce a token claim based on context information. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
Link copied to clipboard
class UserAttributeProtocolMapper : KotlinCustomResource

Allows for creating and managing user attribute protocol mappers within Keycloak. User attribute protocol mappers allow you to map custom attributes defined for a user within Keycloak to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class UserAttributeProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val aggregateAttributes: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val multivalued: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val userAttribute: Output<String>? = null) : ConvertibleToJava<UserAttributeProtocolMapperArgs>

Allows for creating and managing user attribute protocol mappers within Keycloak. User attribute protocol mappers allow you to map custom attributes defined for a user within Keycloak to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class UserClientRoleProtocolMapper : KotlinCustomResource

Allows for creating and managing user client role protocol mappers within Keycloak. User client role protocol mappers allow you to define a claim containing the list of a client roles. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class UserClientRoleProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientIdForRoleMappings: Output<String>? = null, val clientRolePrefix: Output<String>? = null, val clientScopeId: Output<String>? = null, val multivalued: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null) : ConvertibleToJava<UserClientRoleProtocolMapperArgs>

Allows for creating and managing user client role protocol mappers within Keycloak. User client role protocol mappers allow you to define a claim containing the list of a client roles. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class UserPropertyProtocolMapper : KotlinCustomResource

Allows for creating and managing user property protocol mappers within Keycloak. User property protocol mappers allow you to map built in properties defined on the Keycloak user interface to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class UserPropertyProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val userProperty: Output<String>? = null) : ConvertibleToJava<UserPropertyProtocolMapperArgs>

Allows for creating and managing user property protocol mappers within Keycloak. User property protocol mappers allow you to map built in properties defined on the Keycloak user interface to a claim in a token. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class UserRealmRoleProtocolMapper : KotlinCustomResource

Allows for creating and managing user realm role protocol mappers within Keycloak. User realm role protocol mappers allow you to define a claim containing the list of the realm roles. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class UserRealmRoleProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val addToUserinfo: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val multivalued: Output<Boolean>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val realmRolePrefix: Output<String>? = null) : ConvertibleToJava<UserRealmRoleProtocolMapperArgs>

Allows for creating and managing user realm role protocol mappers within Keycloak. User realm role protocol mappers allow you to define a claim containing the list of the realm roles. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
class UserSessionNoteProtocolMapper : KotlinCustomResource

Allows for creating and managing user session note protocol mappers within Keycloak. User session note protocol mappers map a custom user session note to a token claim. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Link copied to clipboard
data class UserSessionNoteProtocolMapperArgs(val addToAccessToken: Output<Boolean>? = null, val addToIdToken: Output<Boolean>? = null, val claimName: Output<String>? = null, val claimValueType: Output<String>? = null, val clientId: Output<String>? = null, val clientScopeId: Output<String>? = null, val name: Output<String>? = null, val realmId: Output<String>? = null, val sessionNote: Output<String>? = null) : ConvertibleToJava<UserSessionNoteProtocolMapperArgs>

Allows for creating and managing user session note protocol mappers within Keycloak. User session note protocol mappers map a custom user session note to a token claim. Protocol mappers can be defined for a single client, or they can be defined for a client scope which can be shared between multiple different clients.

Functions

Link copied to clipboard
fun client(name: String): Client
suspend fun client(name: String, block: suspend ClientResourceBuilder.() -> Unit): Client
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun clientScope(name: String, block: suspend ClientScopeResourceBuilder.() -> Unit): ClientScope
Link copied to clipboard
Link copied to clipboard