Skip to content

Commit

Permalink
Update warden-jwt_auth dependency to support latest configs
Browse files Browse the repository at this point in the history
  • Loading branch information
waiting-for-dev committed Jul 10, 2024
1 parent 66ed13f commit 1c4de3d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion devise-jwt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1c4de3d

Please sign in to comment.