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
Post a Comment