Skip to content

thiagosqr/owasp-thymeleaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

owasp-thymeleaf

##OWASP CSRFGuard 3 integration with Thymeleaf OWASP CSRFGuard 3 does not support Thymeleaf so an integration had to be made using CsrfLink class.

###Maven Dependency

<dependency>
    <groupId>com.github.thiagosqr</groupId>
    <artifactId>owasp-thymeleaf</artifactId>
    <version>1.0.0</version>
</dependency>

###Example

Eg.

   <html xmlns:th="http://www.thymeleaf.org" xmlns:csrf="http://www.w3.org/1999/xhtml">
   ...     
   <a href="#" csrf:token_for="data-href" th:attr="data-href=${it.id+'/delete'}" data-th-text="#{delete.button.label}" class="btn btn-outline btn-danger" data-toggle="modal" data-target="#confirm-delete">delete</a>

About

Secure your application with OWASP CSRFGuard 3 integration with Thymeleaf

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages