Sha256: 86b61bfabcf0e695a9b1b592ddfc1ee319e2a9f46d58511dda3650ef07b97830
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
require 'rack/auth/abstract/handler' module Rack module OAuth2 module Server module Abstract class Handler < Rack::Auth::AbstractHandler attr_accessor :request, :response def initialize(realm = '', &authenticator) super(nil, realm, &authenticator) end def call(env) @authenticator.call(@request, @response) if @authenticator env['rack.oauth2.request'] = @request env['rack.oauth2.response'] = @response @response end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-oauth2-0.0.4 | lib/rack/oauth2/server/abstract/handler.rb |