November 2017
Intermediate to advanced
542 pages
14h 24m
English
Currently, our application has no indication as to whether we are logged in or not. In fact, it appears as though we are always logged in since the Logout link is always displayed. In this section, we will demonstrate how to display the authenticated user's username and conditionally display portions of the page using Thymeleaf’s Spring Security tag library. We do so by performing the following steps:
//build.gradle dependency{ ... compile 'org.thymeleaf.extras:thymeleaf- extras-springsecurity4' }Read now
Unlock full access