signed_params 0.0.1 → 0.1.0
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 +15 -6
- data/lib/signed_params/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: 891a56fac43ec97d7619f289ffc82d565d0d363615b2273329592e29d1152108
|
4
|
+
data.tar.gz: cb4b69abffc6625eee315f5575e916d326d833a6b1749eff5dab4af1da8598ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9557c06ef1af6fc3ff0e253b44d13f4a5a12857cfb25e2d138477f58d24d6aa576c8a10816a010771f3a738593dc49aff9a98be8b99b5bd1e992bc72ad37afd3
|
7
|
+
data.tar.gz: 912c6259c604c4c3d33403720ed74b0fad1769ba5f76283ddc163d7bcc7aee84711e555e5fe8d04a94f580035988d54a85f8dee5270690ab1a36f80d96db6c7c
|
data/README.md
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
# Signed Params
|
2
2
|
|
3
|
-
A
|
3
|
+
A lightweight library for encoding/decoding Rails request parameters.
|
4
4
|
|
5
|
-
`signed_params` are
|
5
|
+
`signed_params` are protected against tampering and safe to share with the internet. Great for generating sharable links and/or mitigating web scrapers.
|
6
6
|
|
7
|
-
Battle
|
7
|
+
Battle-tested at [Hansa](https://hansahq.com). Developed at [Primevise](https://primevise.com).
|
8
|
+
|
9
|
+
<a href="https://rubygems.org/gems/signed_params">
|
10
|
+
<img alt="signed_params GEM Version" src="https://img.shields.io/gem/v/signed_params?color=10b981&include_prereleases&logo=ruby&logoColor=f43f5e">
|
11
|
+
</a>
|
12
|
+
|
13
|
+
<a href="https://rubygems.org/gems/signed_params">
|
14
|
+
<img alt="signed_params GEM Downloads" src="https://img.shields.io/gem/dt/signed_params?color=10b981&include_prereleases&logo=ruby&logoColor=f43f5e">
|
15
|
+
</a>
|
8
16
|
|
9
17
|
---
|
10
18
|
|
@@ -18,9 +26,7 @@ Simply add the gem to your Gemfile by running the following command
|
|
18
26
|
$ bundle add signed_params
|
19
27
|
```
|
20
28
|
|
21
|
-
|
22
|
-
|
23
|
-
#### Add it to your application
|
29
|
+
#### Add to application
|
24
30
|
|
25
31
|
After you have the gem installed, you include the functionality in `app/controllers/application_controller.rb`:
|
26
32
|
|
@@ -58,6 +64,9 @@ class RecordsController < ApplicationController
|
|
58
64
|
end
|
59
65
|
```
|
60
66
|
|
67
|
+
> [!CAUTION]
|
68
|
+
> Avoid exposing sensitive data while using `signed_params`. Your application should still implement proper authentication and authorization.
|
69
|
+
|
61
70
|
---
|
62
71
|
|
63
72
|
## Configuration
|