sorcery-jwt 0.1.12 → 0.1.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c71e86aea70bc6ac73748a70f36bfb7a164fb3a0dec9f0da0a0cd44231d0501
4
- data.tar.gz: 0b4fe6f65d2673638ffef90745adf129e1392e62862a3e5ed0c8bffbd8a9b1de
3
+ metadata.gz: adb4d9ffaf4afc6d3fcec35d9101b699d8985b5304c2767625781b0a8e76b8ac
4
+ data.tar.gz: 5281e03b1e243165b870433dea084976bf2955bd97d8ee3dcc8dea2904d459f6
5
5
  SHA512:
6
- metadata.gz: 7f4be3b1b2463be77b321c1fd0cc214f9a95c7df520f466d1c19362cb9c5ede64c8056a4a50646ac7c10b408fe6e6b26492acf70993f38c88d6716bd8e025ab2
7
- data.tar.gz: 00ab9a77fedd8f3fb6806c4a5c7d3c47e463f4d7423cc28c023806e7761a39ca66a4a9fd38e639eeb6c54c0930e04d8039b4068f6955490418f5546beea8e3e7
6
+ metadata.gz: 410e26d8ac465776c84d9cbb5e84fdc266d7adefa87c6b1d97ad9ae7a542eb2b1c1dd820ecbdcceb6ee7c461883ce4d2bad47b322797ed8529c50a82c36956d5
7
+ data.tar.gz: '08f4afb85fa904eb01e5542d335f00baabcd1a331b3f0fb56f188844052ce2b98252ed54d4fa0f8b5ab37de53e8cc544e8509b42eb5413c2d7f0056b28aa702c'
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Jwt extension for the Sorcery authentication library
4
4
 
5
+ # NOTE: Sorcery v1 is being developed and JWT is being implemented as a core plugin. See https://github.com/Sorcery/sorcery-rework/issues/9 for more.
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -42,7 +44,7 @@ end
42
44
 
43
45
  Available algorithms are listed at https://github.com/jwt/ruby-jwt.
44
46
 
45
- You're now ready to start using the library. By including the submodule, each request will check for an authorization header with a JWT as the value. If the JWT is valid, it will set the `current_user` in the controller to the matching user. It is up to you to handle what happens when a token is invalid or JWTs need to be revoked. Some ideas here: http://waiting-for-dev.github.io/blog/2017/01/24/jwt_revocation_strategies/.
47
+ You're now ready to start using the library. By including the submodule, each request will check for an authorization header with a JWT as the value. If the JWT is valid, it will set the `current_user` in the controller to the matching user. It is up to you to handle what happens when a token is invalid or JWTs need to be revoked. Some ideas here: http://waiting-for-dev.github.io/blog/2017/01/24/jwt_revocation_strategies.
46
48
 
47
49
  To login a user and issue a token, use the `login_and_issue_token` method from a controller. This method takes the same `email` and `password` arguments that the Sorcery `authenticate` method does.
48
50
 
@@ -1,5 +1,5 @@
1
1
  module Sorcery
2
2
  module Jwt
3
- VERSION = "0.1.12".freeze
3
+ VERSION = "0.1.13".freeze
4
4
  end
5
5
  end
data/sorcery-jwt.gemspec CHANGED
@@ -42,5 +42,5 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency "rspec", "~> 3.0"
43
43
 
44
44
  spec.add_runtime_dependency "jwt", ">= 1.0", "< 3.0"
45
- spec.add_runtime_dependency "sorcery", ">= 0.13", "< 0.16"
45
+ spec.add_runtime_dependency "sorcery", ">= 0.13", "< 0.17"
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcery-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hayden Luckenbach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ dependencies:
95
95
  version: '0.13'
96
96
  - - "<"
97
97
  - !ruby/object:Gem::Version
98
- version: '0.16'
98
+ version: '0.17'
99
99
  type: :runtime
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -105,7 +105,7 @@ dependencies:
105
105
  version: '0.13'
106
106
  - - "<"
107
107
  - !ruby/object:Gem::Version
108
- version: '0.16'
108
+ version: '0.17'
109
109
  description: ''
110
110
  email:
111
111
  - hluckenb@gmail.com
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.0.3
151
+ rubygems_version: 3.1.6
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Jwt extension for the Sorcery authentication library