Skip to content

Commit 1c4de3d

Browse files
Update warden-jwt_auth dependency to support latest configs
1 parent 66ed13f commit 1c4de3d

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,25 @@ like an OAuth workflow with client id and client secret.
587587

588588
Defaults to `JWT_AUD`.
589589

590+
#### token_header
591+
592+
Request header containing the token in the format of `Bearer #{token}`.
593+
594+
Defaults to `Authorization`.
595+
596+
#### issuer
597+
598+
The [issuer claim in the token](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1).
599+
600+
If present, it will be checked against the incoming token issuer claim and
601+
authorization will be skipped if they don't match.
602+
603+
Defaults to `nil`.
604+
605+
```ruby
606+
jwt.issuer = 'http://myapp.com'
607+
```
608+
590609
## Development
591610

592611
There are docker and docker-compose files configured to create a development environment for this gem. So, if you use Docker you only need to run:

devise-jwt.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222
spec.require_paths = ["lib"]
2323

2424
spec.add_dependency 'devise', '~> 4.0'
25-
spec.add_dependency 'warden-jwt_auth', '~> 0.8'
25+
spec.add_dependency 'warden-jwt_auth', '~> 0.10'
2626

2727
spec.add_development_dependency "bundler", "> 1"
2828
spec.add_development_dependency "rake", "~> 13.0"

0 commit comments

Comments
 (0)