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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +13 -0
- data/lib/devise/jwt/version.rb +1 -1
- data/lib/devise/jwt.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a98fec2d0b17caa885ee365a32465e0343bc297d5abff540e24a92ce9500b2f6
|
4
|
+
data.tar.gz: 696838ef6812514d0db046f710d3ee027f09d521b6cc7e8da8b902167adf644f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/devise/jwt/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|