cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict login page for logged in customers in Hybris

0 Kudos

In SAP Hybris We have a requirement for customers not to show /login page for customers who are already logged in. Out of the box it show /login page. How can we do this using spring security or java ?

Thanks in Advance.

Accepted Solutions (1)

Accepted Solutions (1)

crescenzorega
Active Participant

Hi,

try to read how to implement the service remember me

Remember Me In 5.0.0 the Accelerator Storefronts will support Remember Me Authentication (Soft Login) which will automatically log a customer into the storefront based on a cookie. This uses Spring's TokenBasedRememberMeServices implementation. Your own implementation only needs to redeclare the rememberMeServices bean to be integrated into the process. Using Spring's Remember Me Authentication allows the Accelerator to make use of Role based authentcation tags, so for example certain links can be easily hidden or shown based on the user's login state. A Remembered / Soft Logged In customer will need to provide their password and log in fully in order to access their Account or to proceed through Checkout.

https://wiki.hybris.com/dosearchsite.action?queryString=remember+me

Answers (0)