class Transistor::Middleware::Authentication
Constants
- AUTHORIZATION_HEADER
- CONTENT_TYPE_HEADER
Public Instance Methods
call(env)
click to toggle source
# File lib/transistor/middleware/authentication.rb, line 13 def call(env) env[:request_headers][AUTHORIZATION_HEADER] = authorize_request(env) @app.call(env) end
initalize(app, options = {})
click to toggle source
Calls superclass method
# File lib/transistor/middleware/authentication.rb, line 9 def initalize(app, options = {}) super(app) end