I am trying to create an API with JWT authentication with Spring security.
Because it's an API I don't need all login/logout functionality from Spring security. I just need the part where Spring Security determines the current user.
So my question is, where can I set the current user for each request?