Class RequestContextHelper

java.lang.Object
org.keycloak.transaction.RequestContextHelper

public class RequestContextHelper extends Object
Provides some info about current HTTP request. Useful for example for logging
Author:
Marek Posolda
  • Field Details

  • Method Details

    • setContextMessage

      public void setContextMessage(String message)
    • getContext

      public static RequestContextHelper getContext(KeycloakSession session)
    • getContextInfo

      public String getContextInfo()
      Providing short information about current request. For example just something "HTTP GET /realms/test/account"
      Returns:
    • getDetailedContextInfo

      public String getDetailedContextInfo()
      Providing longer information about current request. For example something like "HTTP GET /realms/test/protocol/openid-connect/token, form parameters [ grant_type=code, redirect_uri=https://... ]"
      Returns: