From 1c4de3d28eaf286a0d13c6d85695b56ebedcc856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Wed, 10 Jul 2024 16:37:55 +0200 Subject: [PATCH] Update warden-jwt_auth dependency to support latest configs --- README.md | 19 +++++++++++++++++++ devise-jwt.gemspec | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 558f779..66d8e00 100644 --- a/README.md +++ b/README.md @@ -587,6 +587,25 @@ like an OAuth workflow with client id and client secret. Defaults to `JWT_AUD`. +#### token_header + +Request header containing the token in the format of `Bearer #{token}`. + +Defaults to `Authorization`. + +#### issuer + +The [issuer claim in the token](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1). + +If present, it will be checked against the incoming token issuer claim and +authorization will be skipped if they don't match. + +Defaults to `nil`. + +```ruby +jwt.issuer = 'http://myapp.com' +``` + ## Development 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: diff --git a/devise-jwt.gemspec b/devise-jwt.gemspec index 6cfe64e..667aeb5 100644 --- a/devise-jwt.gemspec +++ b/devise-jwt.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_dependency 'devise', '~> 4.0' - spec.add_dependency 'warden-jwt_auth', '~> 0.8' + spec.add_dependency 'warden-jwt_auth', '~> 0.10' spec.add_development_dependency "bundler", "> 1" spec.add_development_dependency "rake", "~> 13.0"