cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieving current user in Hybris

0 Likes
2,193

Hi, is userService.currentUser( ) expected to return the current user even when the front end is managed by some other tool/technology and we are using Hybris only for the backend?

How does Hybris know which user has logged in?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Yes, the de.hybris.platform.spring.security.CoreAuthenticationProvider puts the user into the JaloSession. It is used by default in every web application which is secured with spring security (storefront, backoffice, hac, ...) and should be used also via oauth for all the rest-based webservices.