Sha256: 7bc9dfb9f3b54bb62c71054e1464bd0e5cfe599451685096cd0c0f56af0ee75c
Contents?: true
Size: 412 Bytes
Versions: 24
Compression:
Stored size: 412 Bytes
Contents
module TDiary module Rack class Auth autoload :Basic, 'tdiary/rack/auth/basic' autoload :OmniAuth, 'tdiary/rack/auth/omniauth' def initialize(app) if defined? ::OmniAuth @app = TDiary::Rack::Auth::OmniAuth.new(app) else @app = TDiary::Rack::Auth::Basic.new(app, ENV['HTPASSWD'] || '.htpasswd') end end def call(env) @app.call(env) end end end end
Version data entries
24 entries across 19 versions & 1 rubygems