KeycloakProperties

data class KeycloakProperties(val serverUrl: String, val realm: String, val adminClientId: String, val adminClientSecret: String, val gatewayClientId: String, val gatewayClientSecret: String, val rolesClaimPath: String, val cookie: SharedConfigProperties.KeycloakProperties.CookieProperties)(source)

Keycloak realm / client configuration shared by all services.

Constructors

Link copied to clipboard
constructor(serverUrl: String, realm: String, adminClientId: String, adminClientSecret: String, gatewayClientId: String, gatewayClientSecret: String, rolesClaimPath: String, cookie: SharedConfigProperties.KeycloakProperties.CookieProperties)

Types

Link copied to clipboard
data class CookieProperties(val refreshTokenCookieName: String, val httpOnly: Boolean, val secure: Boolean, val sameSite: String, val path: String)

Refresh-token cookie settings used by the API Gateway BFF.

Properties

Link copied to clipboard

Confidential client used by iam-service for the Keycloak Admin REST API.

Link copied to clipboard

Secret of adminClientId.

Link copied to clipboard

Refresh-token cookie configuration used by the gateway BFF.

Link copied to clipboard

Public client used by the API Gateway for the BFF OAuth2 code flow.

Link copied to clipboard

Secret of gatewayClientId.

Link copied to clipboard

Realm name used for both token issuance and admin operations.

Link copied to clipboard

Dot-separated path within the JWT to the roles list (e.g. realm_access.roles). Consumed by KeycloakJwtUtils.extractRoles.

Link copied to clipboard

Base URL of the Keycloak server (e.g. http://keycloak:8080).