Sha256: 672ccdf2ae46ca37baa72d6f06c0f5ea5eb090c085a4c1f3c3cd3213d3ecb0ec

Contents?: true

Size: 355 Bytes

Versions: 21

Compression:

Stored size: 355 Bytes

Contents

module Typus
  module Authentication
    module HttpBasic

      protected

      include Base

      def authenticate
        @admin_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

21 entries across 21 versions & 1 rubygems

Version Path
typus-3.0.12 lib/typus/authentication/http_basic.rb
typus-3.0.11 lib/typus/authentication/http_basic.rb
typus-3.0.11.rc5 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc11 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc10 lib/typus/authentication/http_basic.rb
typus-3.0.11.rc4 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc9 lib/typus/authentication/http_basic.rb
typus-3.0.11.rc3 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc8 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc7 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc6 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc5 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc4 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc3 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc2 lib/typus/authentication/http_basic.rb
typus-3.0.11.rc2 lib/typus/authentication/http_basic.rb
typus-3.0.11.rc1 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc1 lib/typus/authentication/http_basic.rb
typus-3.0.10 lib/typus/authentication/http_basic.rb
typus-3.0.9 lib/typus/authentication/http_basic.rb