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

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

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

google shop client API returns 400 bad request error while adding an item -