owasp-thymeleaf

OWASP CSRFGuard 3 integration with Thymeleaf

License

License

Categories

Categories

Leaf Data Databases
GroupId

GroupId

com.github.thiagosqr
ArtifactId

ArtifactId

owasp-thymeleaf
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

owasp-thymeleaf
OWASP CSRFGuard 3 integration with Thymeleaf
Project URL

Project URL

https://github.com/thiagosqr/owasp-thymeleaf
Source Code Management

Source Code Management

https://github.com/thiagosqr/owasp-thymeleaf

Download owasp-thymeleaf

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.thiagosqr/owasp-thymeleaf/ -->
<dependency>
    <groupId>com.github.thiagosqr</groupId>
    <artifactId>owasp-thymeleaf</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.thiagosqr/owasp-thymeleaf/
implementation 'com.github.thiagosqr:owasp-thymeleaf:1.0.0'
// https://jarcasting.com/artifacts/com.github.thiagosqr/owasp-thymeleaf/
implementation ("com.github.thiagosqr:owasp-thymeleaf:1.0.0")
'com.github.thiagosqr:owasp-thymeleaf:jar:1.0.0'
<dependency org="com.github.thiagosqr" name="owasp-thymeleaf" rev="1.0.0">
  <artifact name="owasp-thymeleaf" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.thiagosqr', module='owasp-thymeleaf', version='1.0.0')
)
libraryDependencies += "com.github.thiagosqr" % "owasp-thymeleaf" % "1.0.0"
[com.github.thiagosqr/owasp-thymeleaf "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.thymeleaf : thymeleaf jar 2.1.3.RELEASE

provided (1)

Group / Artifact Type Version
javax.servlet : servlet-api jar 3.0-alpha-1

system (1)

Group / Artifact Type Version
org.owasp : csrfguard jar 3.1.0-SNAPSHOT

Project Modules

There are no modules declared in this project.

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>

Versions

Version
1.0.0