Interface MappedDiagnosticContextProvider

All Superinterfaces:
Provider
All Known Implementing Classes:
DefaultMappedDiagnosticContextProviderFactory, NoopMappedDiagnosticContextProvider

public interface MappedDiagnosticContextProvider extends Provider
Provider interface for updating the Mapped Diagnostic Context (MDC) with key/value pairs based on the current keycloak context. All keys in the MDC will be prefixed with "kc." to avoid conflicts.
Author:
Björn Eickvonder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(KeycloakContext keycloakContext, ClientModel client)
    Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
    void
    update(KeycloakContext keycloakContext, OrganizationModel organization)
    Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
    void
    update(KeycloakContext keycloakContext, RealmModel realm)
    Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
    void
    update(KeycloakContext keycloakContext, UserSessionModel userSession)
    Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.
    void
    Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context.

    Methods inherited from interface org.keycloak.provider.Provider

    close
  • Field Details

  • Method Details

    • update

      void update(KeycloakContext keycloakContext, AuthenticationSessionModel session)
      Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the authentication session property of the Keycloak context is updated.
      Parameters:
      keycloakContext - the current Keycloak context, never null
      session - the authentication session
    • update

      void update(KeycloakContext keycloakContext, RealmModel realm)
      Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the realm property of the Keycloak context is updated.
      Parameters:
      keycloakContext - the current Keycloak context, never null
      realm - the realm
    • update

      void update(KeycloakContext keycloakContext, ClientModel client)
      Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the client property of the Keycloak context is updated.
      Parameters:
      keycloakContext - the current Keycloak context, never null
      client - the client
    • update

      void update(KeycloakContext keycloakContext, OrganizationModel organization)
      Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the organization property of the Keycloak context is updated.
      Parameters:
      keycloakContext - the current Keycloak context, never null
      organization - the organization
    • update

      void update(KeycloakContext keycloakContext, UserSessionModel userSession)
      Updates the Mapped Diagnostic Context (MDC) with key/value pairs based on the current Keycloak context. This method is called when a Keycloak Session is set and when the user session property of the Keycloak context is updated.
      Parameters:
      keycloakContext - the current Keycloak context, never null
      userSession - the user session