Add www/rubygem-rack_csrf, an anti-CSRF Rack middleware. Roda's CSRF
plugin uses this gem. WWW: https://github.com/baldowl/rack_csrf
This commit is contained in:
parent
5a79d1c043
commit
66f1637cfd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454657
@ -2095,6 +2095,7 @@
|
||||
SUBDIR += rubygem-pusher-client
|
||||
SUBDIR += rubygem-rabbirack
|
||||
SUBDIR += rubygem-rack
|
||||
SUBDIR += rubygem-rack_csrf
|
||||
SUBDIR += rubygem-rack-accept
|
||||
SUBDIR += rubygem-rack-attack
|
||||
SUBDIR += rubygem-rack-cache
|
||||
|
22
www/rubygem-rack_csrf/Makefile
Normal file
22
www/rubygem-rack_csrf/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rack_csrf
|
||||
PORTVERSION= 2.6.0
|
||||
CATEGORIES= www rubygems
|
||||
MASTER_SITES= RG
|
||||
|
||||
MAINTAINER= adamw@FreeBSD.org
|
||||
COMMENT= Anti-CSRF Rack middleware
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.rdoc
|
||||
|
||||
RUN_DEPENDS= rubygem-rack>=1.1.0:www/rubygem-rack
|
||||
TEST_DEPENDS= rubygem-rspec>0:devel/rubygem-rspec
|
||||
|
||||
USES= gem
|
||||
USE_RUBY= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/rubygem-rack_csrf/distinfo
Normal file
3
www/rubygem-rack_csrf/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1511302383
|
||||
SHA256 (rubygem/rack_csrf-2.6.0.gem) = 17c57d898e2fb6577872b37ca66cbb44cefc2b98ff0e79001e2b6886f504416f
|
||||
SIZE (rubygem/rack_csrf-2.6.0.gem) = 20992
|
8
www/rubygem-rack_csrf/pkg-descr
Normal file
8
www/rubygem-rack_csrf/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This is just a small Rack middleware whose only goal is to lessen the hazards
|
||||
posed by CSRF attacks by trying to ensure that all requests of particular types
|
||||
come from the right client, not from a mischievous impersonator.
|
||||
|
||||
Rack::Csrf is not tailored to any particular web framework, so it can be used
|
||||
with your preferred Rack-based framework.
|
||||
|
||||
WWW: https://github.com/baldowl/rack_csrf
|
Loading…
Reference in New Issue
Block a user