Sha256: e175e1463ba414b61d57ef0b0b3ecf4f0539b9dae5e2d7dea7f76c0b40d21df3

Contents?: true

Size: 353 Bytes

Versions: 33

Compression:

Stored size: 353 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 |username, password|
          username == Typus.username && password == Typus.password
        end
      end

    end
  end
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
typus-3.1.4 lib/typus/authentication/http_basic.rb
typus-3.1.3 lib/typus/authentication/http_basic.rb
typus-3.1.2 lib/typus/authentication/http_basic.rb
typus-3.1.1 lib/typus/authentication/http_basic.rb
typus-3.1.0 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc19 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc18 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc17 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc16 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc15 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc14 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc13 lib/typus/authentication/http_basic.rb
typus-3.1.0.rc12 lib/typus/authentication/http_basic.rb