Skip to content

Commit

Permalink
Allow token header for warden-jwt_auth to be configured through config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Humes authored and waiting-for-dev committed Jul 12, 2024
1 parent 5cfe00f commit ff6cc7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/devise/jwt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def self.forward_to_warden(setting, value)
default: Warden::JWTAuth.config.revocation_requests,
constructor: ->(value) { forward_to_warden(:revocation_requests, value) })

setting(:token_header,
default: Warden::JWTAuth.config.token_header,
constructor: ->(value) { forward_to_warden(:token_header, value) })

setting(:aud_header,
default: Warden::JWTAuth.config.aud_header,
constructor: ->(value) { forward_to_warden(:aud_header, value) })
Expand Down

0 comments on commit ff6cc7e

Please sign in to comment.