Filter html content with Spring and Thymeleaf -


how can filter html content according authentication status using spring boot spring security , thymeleaf? note: i'm using spring boot auto-configuration.

what want can achieved using thymeleaf's spring security integration (check out link if haven't integrated two).

for example following:

<div sec:authorize="hasrole('role_admin')">     content shown administrators. </div> <div sec:authorize="hasrole('role_user')">     content shown users. </div> 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -