jwtgen 0.1.1 → 0.1.2
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 +11 -0
- data/exe/jwtgen +7 -0
- data/lib/jwtgen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 360a095c47aae5b5533663ce79f25cc2c5c0cb78
|
|
4
|
+
data.tar.gz: 1145235c3f6480dc2f635509960db5fc26676d90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8752b58743f6ef5eec4ec6af7d7add0b5bdc57e00455034860af9f5b11dd8f63de4a1bfe1f7fdf7181289ec85a043f9607f87839d03716ddb030bd514d0e0bb5
|
|
7
|
+
data.tar.gz: 82b71897108c9fd5ba3560e563fdb389c46a9c6b1d327ff29c0abfe77361ec152f017f03c2b482962cbeeb24e4ae46db3bf19d5774a093b85fc281a578023e77
|
data/README.md
CHANGED
|
@@ -30,6 +30,17 @@ Provide HMAC algorithm and secret key:
|
|
|
30
30
|
role Manager
|
|
31
31
|
The JWT has been copied to your clipboard!
|
|
32
32
|
|
|
33
|
+
You can store options `key` and `algorithm` in configuration file `.jwtgen` stored in your user folder
|
|
34
|
+
|
|
35
|
+
--key 2f27090cf62f34c1dcfd4b1de3809bb8b1ab31f0b376d1cf8c36827f4d5ad2dd
|
|
36
|
+
--algorithm HS512
|
|
37
|
+
|
|
38
|
+
NOTE: Supplied options have a higher priority than options stored in the configuration file.
|
|
39
|
+
|
|
40
|
+
Create file with single cammand (don't forget to replace the key):
|
|
41
|
+
|
|
42
|
+
$ echo "--key 2f27090cf62f34c1dcfd4b1de3809bb8b1ab31f0b376d1cf8c36827f4d5ad2dd\n--algorithm HS512" > ~/.jwtgen
|
|
43
|
+
|
|
33
44
|
## Development
|
|
34
45
|
|
|
35
46
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/exe/jwtgen
CHANGED
data/lib/jwtgen/version.rb
CHANGED