Class: Auth::Sinatra::Conditional
- Inherits:
-
Object
- Object
- Auth::Sinatra::Conditional
- Defined in:
- lib/sinatra/conditional.rb
Class Method Summary collapse
Class Method Details
.process_request(env) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/sinatra/conditional.rb', line 6 def self.process_request(env) jwt_token = env.fetch('HTTP_AUTHORIZATION', '').slice(7..-1) processor = Auth::TokenProcessor.new ENV['JWT_SECRET'], ENV['JWT_ISSUER'] processor.process jwt_token end |