Sha256: 3d110dabc3c7a43667e141806c436203bd17f0e98e66cda014e353c1594c88bf

Contents?: true

Size: 361 Bytes

Versions: 8

Compression:

Stored size: 361 Bytes

Contents

module Typus

  module Authentication

    module HttpBasic

      protected

      include Base

      def authenticate
        @current_user = FakeUser.new
        authenticate_or_request_with_http_basic(Typus.admin_title) do |user_name, password|
          user_name == Typus.username && password == Typus.password
        end
      end

    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 lib/typus/authentication/http_basic.rb
typus-3.0.1 lib/typus/authentication/http_basic.rb
typus-3.0.0 lib/typus/authentication/http_basic.rb
typus-1.0.0.pre13 lib/typus/authentication/http_basic.rb
typus-1.0.0.pre12 lib/typus/authentication/http_basic.rb
typus-1.0.0.pre11 lib/typus/authentication/http_basic.rb
typus-1.0.0.pre10 lib/typus/authentication/http_basic.rb
typus-1.0.0.pre9 lib/typus/authentication/http_basic.rb