Class: BasicAndNego::Auth::Basic
- Defined in:
- lib/basic_and_nego/auth/basic.rb
Instance Attribute Summary
Attributes inherited from Base
#client_name, #headers, #response
Instance Method Summary collapse
-
#initialize(request, logger, realm, keytab, service) ⇒ Basic
constructor
A new instance of Basic.
- #process ⇒ Object
Methods included from Responses
#bad_request, #challenge, #error, #unauthorized
Constructor Details
#initialize(request, logger, realm, keytab, service) ⇒ Basic
Returns a new instance of Basic.
8 9 10 11 |
# File 'lib/basic_and_nego/auth/basic.rb', line 8 def initialize(request, logger, realm, keytab, service) super @krb = BasicAndNego::Auth::Krb.new(@logger, @realm, @keytab) end |
Instance Method Details
#process ⇒ Object
13 14 15 16 17 18 |
# File 'lib/basic_and_nego/auth/basic.rb', line 13 def process @logger.debug "Basic scheme proposed by client" user, password = @request.credentials authenticate(user, password) @client_name = user unless @response end |