Package org.imixs.security.oidc
Class UserInfoService
java.lang.Object
org.imixs.security.oidc.UserInfoService
Service to fetch additional user information from the OIDC UserInfo endpoint.
This is necessary for providers like ForgeRock that don't include all claims
in the ID token but require a separate UserInfo request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObjectfetchAndMergeUserInfo(String accessToken, jakarta.json.JsonObject idTokenClaims) Fetches user information from the UserInfo endpoint using the access token and merges it with existing claims from the ID token.
-
Constructor Details
-
UserInfoService
public UserInfoService()
-
-
Method Details
-
fetchAndMergeUserInfo
public jakarta.json.JsonObject fetchAndMergeUserInfo(String accessToken, jakarta.json.JsonObject idTokenClaims) Fetches user information from the UserInfo endpoint using the access token and merges it with existing claims from the ID token.- Parameters:
accessToken- The access token to authenticate the UserInfo requestidTokenClaims- Existing claims from the ID token- Returns:
- JsonObject containing merged claims from ID token and UserInfo endpoint
-