We're developing a Javascript Web Client that connects to our own REST server. We want users to login to the web app using accounts on the REST server so that they can then be authorized to perform HTTP actions on resources according to their rights and roles.
The question is:
When the user accesses a REST resource using the access token he received through the password grant, will spring security implicitly behave as if the user is logged in with his account for the duration of the request? That is, can I then protect my resources using @PreAuthorize annotations to apply authorization rules for the current principal?