graphql_authorizer 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/graphql_authorizer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1006a6eb122eb4e84b3f58e4b8fae00d9d5fcca07fc1c1178c8581023a64e858
|
4
|
+
data.tar.gz: b6351a5a685281b8118f7ac4236fbd1f244c90349bbbfddab05de28aede5689b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1310d996f55fed8c0920e4e9baf675fe57a75ee97257ee47b378e28f65e468af79ba91f8c1183b359e2ec2d6f91ab8c4175588f1655bce907edb23e13bba916
|
7
|
+
data.tar.gz: 971518a941445b532dfd6b91fc7651fe813b8f8f647cc4f271c1307653b8e36784fb234bcc3f8f2b7aff3e81b965c29b47640c94bb4c04659a89485556a00c8b
|
data/README.md
CHANGED
@@ -35,6 +35,14 @@ This will generate initializer configuration files for:
|
|
35
35
|
|
36
36
|
- [Rack-Attack](https://bitbucket.org/gorated/graphql-authorizer/src/master/lib/generators/graphql_authorizer/templates/rack_attack.rb).
|
37
37
|
|
38
|
+
Add Rack Attack in application.rb:
|
39
|
+
|
40
|
+
```
|
41
|
+
# In config/application.rb
|
42
|
+
|
43
|
+
config.middleware.use Rack::Attack
|
44
|
+
```
|
45
|
+
|
38
46
|
note: `Rack Attack` initializer file contains basic configurations to `allow`,
|
39
47
|
`block` and `throttle` client's access based on defined conditions.
|
40
48
|
|