Sha256: fd4d0515abd6582676eceb2e02a95e997ae715d1b98919cf71a9cd9908439561

Contents?: true

Size: 500 Bytes

Versions: 17

Compression:

Stored size: 500 Bytes

Contents

module ExvoAuth::Controllers::Merb
  def self.included(base)
    base.send :include, ExvoAuth::Controllers::Base
    base.send :include, InstanceMethods
  end
  
  module InstanceMethods
    def authenticate_user!
      super
      throw :halt unless signed_in?
    end
    
    protected

    def request_method
      request.method.to_s.upcase
    end

    def basic_authentication_method_name
      :basic_authentication
    end

    def redirect_to(*args)
      redirect(*args)
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
exvo_auth-0.16.5 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.16.4 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.16.3 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.16.2 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.16.1 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.16.0 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.15.1 lib/exvo_auth/controllers/merb.rb
exvo_auth-0.15.0 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.14.1 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.14.0 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.13.0 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.12.2 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.12.1 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.12.0 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.11.2 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.11.1 lib/exvo_auth/controllers/merb.rb
exvo-auth-0.11.0 lib/exvo_auth/controllers/merb.rb