Package org.keycloak.transaction
Class RequestContextHelper
java.lang.Object
org.keycloak.transaction.RequestContextHelper
Provides some info about current HTTP request. Useful for example for logging
- Author:
- Marek Posolda
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestContextHelper
getContext
(KeycloakSession session) Providing short information about current request.Providing longer information about current request.void
setContextMessage
(String message)
-
Field Details
-
SESSION_ATTRIBUTE
- See Also:
-
-
Method Details
-
setContextMessage
-
getContext
-
getContextInfo
Providing short information about current request. For example just something "HTTP GET /realms/test/account"- Returns:
-
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:
-