devise-jwt 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04ea0b0abaaaf9486d4bc19ca5dfed4c867e12071934e8bb963fccd9fbd4fd90
4
- data.tar.gz: 36375dfe1a8be67b238b8bddb1d7ccffb5c207a36faa380230fd99968f746421
3
+ metadata.gz: a98fec2d0b17caa885ee365a32465e0343bc297d5abff540e24a92ce9500b2f6
4
+ data.tar.gz: 696838ef6812514d0db046f710d3ee027f09d521b6cc7e8da8b902167adf644f
5
5
  SHA512:
6
- metadata.gz: f07dbe6fafbcd51f6c380866432db7b2c372c576005ec307a0eaaacd73f1dd10b9d9fae9783da5e6a5afca15ea021262ac4068738d4a3648cb87602e8acbd089
7
- data.tar.gz: 345765410de35fe76e5603ba4a42ce0f0bba52eb3743a627418b84e283bbdeffdd4cb6b0ebe932d8e88de41ca112d358ebc6b3cde9a52bda9b128e2425c60fc5
6
+ metadata.gz: 7c4c4f38cb9657c4887e1e494f671430e85c067afd0e48ef4304ea3e86c2c3026c4c1a7debb90581fb08bca4eb638767d9d3dc93270cc2622d32acebf2843c8f
7
+ data.tar.gz: cc33344c9c81402304a948eb040f5993b45c00acea9efaa4a645186fa1ffd32cccec3d2c2eaa42fae4b7c76edaf707099c47cc6883160fdd0a8db1b1b5be0591
data/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.12.1] - 2024-07-12
8
+ - Fix properly support for `token_header` & `issuer` config options
9
+
7
10
  ## [0.12.0] - 2024-07-10
8
11
  ### Added
9
12
  - Add support for `token_header` config
data/README.md CHANGED
@@ -571,6 +571,19 @@ jwt.request_formats = {
571
571
 
572
572
  By default, only requests without format are processed.
573
573
 
574
+ #### token_header
575
+
576
+ Request/response header which will transmit the JWT token.
577
+
578
+ Defaults to 'Authorization'
579
+
580
+ #### issuer
581
+
582
+ Expected issuer claim. If present, it will be checked against the incoming
583
+ token issuer claim and authorization will be skipped if they don't match.
584
+
585
+ Defaults to nil.
586
+
574
587
  #### aud_header
575
588
 
576
589
  Request header which content will be stored to the `aud` claim in the payload.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Devise
4
4
  module JWT
5
- VERSION = '0.12.0'
5
+ VERSION = '0.12.1'
6
6
  end
7
7
  end
data/lib/devise/jwt.rb CHANGED
@@ -58,6 +58,14 @@ module Devise
58
58
  default: Warden::JWTAuth.config.revocation_requests,
59
59
  constructor: ->(value) { forward_to_warden(:revocation_requests, value) })
60
60
 
61
+ setting(:token_header,
62
+ default: Warden::JWTAuth.config.token_header,
63
+ constructor: ->(value) { forward_to_warden(:token_header, value) })
64
+
65
+ setting(:issuer,
66
+ default: Warden::JWTAuth.config.issuer,
67
+ constructor: ->(value) { forward_to_warden(:issuer, value) })
68
+
61
69
  setting(:aud_header,
62
70
  default: Warden::JWTAuth.config.aud_header,
63
71
  constructor: ->(value) { forward_to_warden(:aud_header, value) })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Busqué
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-10 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise