class Rack::OAuth2::Server::Abstract::Handler
Attributes
authenticator[RW]
request[RW]
response[RW]
Public Class Methods
new(&authenticator)
click to toggle source
# File lib/rack/oauth2/server/abstract/handler.rb, line 8 def initialize(&authenticator) @authenticator = authenticator end
Public Instance Methods
_call(env)
click to toggle source
# File lib/rack/oauth2/server/abstract/handler.rb, line 20 def _call(env) @authenticator.call(@request, @response) if @authenticator @response end
call(env)
click to toggle source
# File lib/rack/oauth2/server/abstract/handler.rb, line 12 def call(env) # NOTE: # Rack middleware is initialized only on the first request of the process. # So any instance variables are acts like class variables, and modifying them in call() isn't thread-safe. # ref.) http://stackoverflow.com/questions/23028226/rack-middleware-and-thread-safety dup._call(env) end