This repository has been archived on 2020-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Andrew Thornton 9889eb38af
All checks were successful
continuous-integration/drone/push Build is passing
Add SameSite (#8)
remove GetSameSite() from CSRF interface

as per @silverwind

Signed-off-by: Andrew Thornton <art27@cantab.net>

Add CookieLifetime

Signed-off-by: Andrew Thornton <art27@cantab.net>

Add SameSite

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: #8
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: silverwind <silverwind@noreply.gitea.io>
Co-Authored-By: Andrew Thornton <art27@cantab.net>
Co-Committed-By: Andrew Thornton <art27@cantab.net>
2020-11-12 12:29:35 +08:00
.drone.yml add drone (#3) 2019-08-05 05:22:34 +00:00
csrf_test.go Use github.com/unknwon/com (#7) 2019-08-22 02:42:05 +00:00
csrf.go Add SameSite (#8) 2020-11-12 12:29:35 +08:00
go.mod Add SameSite (#8) 2020-11-12 12:29:35 +08:00
go.sum Add SameSite (#8) 2020-11-12 12:29:35 +08:00
LICENSE first commit 2014-07-30 06:37:51 -04:00
README.md Update 'README.md' (#2) 2019-08-02 15:25:11 +00:00
xsrf_test.go upgrade with macaron 2015-10-13 23:36:06 -04:00
xsrf.go csrf: token uses raw url encoding without padding (#8) 2018-09-14 10:22:40 -04:00

csrf Build Status

Middleware csrf generates and validates CSRF tokens for Macaron.

API Reference

Installation

go get gitea.com/macaron/csrf

Getting Help

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.