angular_rails_csrf 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/README.md +2 -0
- data/lib/angular_rails_csrf/concern.rb +1 -1
- data/lib/angular_rails_csrf/version.rb +1 -1
- metadata +49 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
data.tar.gz: 62475e75b27d64da176d5dcc885d5b64106c2c1f
|
4
|
+
metadata.gz: 0c478c34f6855c22677a8fbf6d65806b9f410d7e
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 7bf1f8741a97379e8fb5267e3f729396f345631e304a572146e523189313f0b0df81111f292dc31493ac5d3b74121dea8f2d9f3c799e21e0c25791b5f670cc32
|
7
|
+
metadata.gz: 6f0924910ac9a6cd72627fab243ffbb0413531e25ae2a0eb4f57e6c70f936cd5ec05ef0f1a10121a33514345cef2d6eef1def4dc13cb7021843cca1f40e0acf5
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
## AngularJS-style CSRF Protection for Rails
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/jsanders/angular_rails_csrf.png)](https://travis-ci.org/jsanders/angular_rails_csrf)
|
4
|
+
|
3
5
|
The AngularJS [ng.$http](http://docs.angularjs.org/api/ng.$http) service has built-in CSRF protection. By default, it looks for a cookie named `XSRF-TOKEN` and, if found, writes its value into an `X-XSRF-TOKEN` header, which the server compares with the CSRF token saved in the user's session.
|
4
6
|
|
5
7
|
This project adds direct support for this scheme to your Rails application without requiring any changes to your AngularJS application. It also doesn't require the use of `csrf_meta_tags` to write a CSRF token into your page markup, so it works for pure JSON API applications.
|
metadata
CHANGED
@@ -1,97 +1,92 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular_rails_csrf
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- James Sanders
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2014-09-12 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 10.1.0
|
20
|
-
type: :development
|
21
16
|
prerelease: false
|
22
|
-
|
23
|
-
requirements:
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
24
19
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
26
21
|
version: 10.1.0
|
27
|
-
|
22
|
+
type: :development
|
23
|
+
version_requirements: *id001
|
24
|
+
- !ruby/object:Gem::Dependency
|
28
25
|
name: rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '>='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3'
|
34
|
-
- - <
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: '5'
|
37
|
-
type: :runtime
|
38
26
|
prerelease: false
|
39
|
-
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version:
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "3"
|
44
32
|
- - <
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "5"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
47
37
|
description: AngularJS style CSRF protection for Rails
|
48
|
-
email:
|
38
|
+
email:
|
49
39
|
- sanderjd@gmail.com
|
50
40
|
executables: []
|
41
|
+
|
51
42
|
extensions: []
|
43
|
+
|
52
44
|
extra_rdoc_files: []
|
53
|
-
|
45
|
+
|
46
|
+
files:
|
47
|
+
- MIT-LICENSE
|
48
|
+
- README.md
|
49
|
+
- Rakefile
|
50
|
+
- lib/angular_rails_csrf.rb
|
54
51
|
- lib/angular_rails_csrf/concern.rb
|
55
52
|
- lib/angular_rails_csrf/railtie.rb
|
56
53
|
- lib/angular_rails_csrf/version.rb
|
57
|
-
- lib/angular_rails_csrf.rb
|
58
|
-
- MIT-LICENSE
|
59
|
-
- Rakefile
|
60
|
-
- README.md
|
61
54
|
- test/angular_rails_csrf_test.rb
|
62
55
|
- test/dummy/app/controllers/application_controller.rb
|
56
|
+
- test/dummy/config.ru
|
63
57
|
- test/dummy/config/application.rb
|
64
58
|
- test/dummy/config/boot.rb
|
65
59
|
- test/dummy/config/environment.rb
|
66
60
|
- test/dummy/config/routes.rb
|
67
|
-
- test/dummy/config.ru
|
68
61
|
- test/dummy/log/test.log
|
69
62
|
- test/test_helper.rb
|
70
63
|
homepage: https://github.com/jsanders/angular_rails_csrf
|
71
|
-
licenses:
|
64
|
+
licenses:
|
72
65
|
- MIT
|
73
66
|
metadata: {}
|
67
|
+
|
74
68
|
post_install_message:
|
75
69
|
rdoc_options: []
|
76
|
-
|
70
|
+
|
71
|
+
require_paths:
|
77
72
|
- lib
|
78
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
-
|
81
|
-
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
version: '0'
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- &id003
|
76
|
+
- ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- *id003
|
88
82
|
requirements: []
|
83
|
+
|
89
84
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.1
|
85
|
+
rubygems_version: 2.2.1
|
91
86
|
signing_key:
|
92
87
|
specification_version: 4
|
93
88
|
summary: Support for AngularJS $http service style CSRF protection in Rails
|
94
|
-
test_files:
|
89
|
+
test_files:
|
95
90
|
- test/angular_rails_csrf_test.rb
|
96
91
|
- test/dummy/app/controllers/application_controller.rb
|
97
92
|
- test/dummy/config/application.rb
|