As said in the title, I want to retrieve the user session notes that I set during user authentication using this Admin Rest API endpoint: GET /admin/realms/{realm}/users/{id}/sessions
.
I have successfully created a custom authenticator as suggested in this question and following the documentation
In my custom authenticator i set the user session notes i want
@Override
public void authenticate(AuthenticationFlowContext context) {
context.getAuthenticationSession().setUserSessionNote("key", "value");
context.success();
}
But I cant see them using the Admin Rest API endpoint.
I was even able to map these session notes to a claim in my access tokens (and I can see the session notes in the token claims). But i dont need them in the token, i need to read them from the endpoint.
Is that supposed to work? Am I missing something?