KeycloakJwtAuthenticationConverter

class KeycloakJwtAuthenticationConverter(sharedConfig: SharedConfigProperties) : Converter<Jwt, AbstractAuthenticationToken> (source)

Converts a Keycloak-issued JWT into a Spring Security JwtAuthenticationToken with authorities extracted from the configured roles claim.

Used by WebMVC-based services (iam-service, mail-service, template-service).

Constructors

Link copied to clipboard
constructor(sharedConfig: SharedConfigProperties)

Functions

Link copied to clipboard
open fun <U : Any?> andThen(after: Converter<in AbstractAuthenticationToken?, out @Nullable U?>?): Converter<Jwt?, @Nullable U?>?
Link copied to clipboard
open override fun convert(jwt: Jwt): AbstractAuthenticationToken