File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -587,6 +587,25 @@ like an OAuth workflow with client id and client secret.
587587
588588Defaults 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
592611There 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:
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments