jwt_auth_token 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jwt_auth_token.rb +8 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f2b2d2ac96194679310b575ab78d61700b9a350
4
- data.tar.gz: bf741e5bfe992bb2d09915d4807652eb950ac6c6
3
+ metadata.gz: e6c4dab31e9d42f278112c447f52aa9bc6c87fbb
4
+ data.tar.gz: d01f607d104a4cb94cb51ef837996f81a3773d93
5
5
  SHA512:
6
- metadata.gz: 977ca650ca64135394a2ef7101571ff8c50e381ee7e438e7921ba10ad6a915d75fe2e9a03c716dcd9b893d77dcd32cf0ce459b792bf3726b3d45751b342d454a
7
- data.tar.gz: 04e628956671362d816b8a24048afd74ecb98db7c1ae96732532462344a8384af4b31eb59b9e5ef64e719684cf3e7161f0056dde4463c200266ae965e7db45d2
6
+ metadata.gz: c39ad718309cb1a02499260bcc4a85dbb966afeb8a9912104b1cf213c6348462c6140c289efaa919f0657460594a3344781f7a055d08f9bb4b6d7cedf2791739
7
+ data.tar.gz: 3d91d6f467f3dededb8552660936c6a7cf6360afe9d808cd45f1e12cb5286c47e1a35fc439978ddd278dcb9b9f17e5282fb63feffa2ef94bc83d09d605bf832e
@@ -0,0 +1,8 @@
1
+ class JwtAuthToken
2
+
3
+ def self.set_header
4
+ hmac_secret = Rails.application.secrets[:secret_key_base]
5
+ response.set_header("embibe-token", JWT.encode(@resource,hmac_secret,'HS512'))
6
+ end
7
+
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_auth_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Afzal Lakdawala
@@ -29,7 +29,8 @@ email: afzalmlakdawala@gmail.com
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
- files: []
32
+ files:
33
+ - lib/jwt_auth_token.rb
33
34
  homepage: http://rubygems.org/gems/jwt_auth_token
34
35
  licenses:
35
36
  - MIT