Class: Rack::Bacoo::BasicAuthRequest
- Inherits:
-
Auth::AbstractRequest
- Object
- Auth::AbstractRequest
- Rack::Bacoo::BasicAuthRequest
- Defined in:
- lib/rack/bacoo/basic_auth_request.rb
Instance Method Summary collapse
Instance Method Details
#password ⇒ Object
14 15 16 |
# File 'lib/rack/bacoo/basic_auth_request.rb', line 14 def password credentials.last end |
#username ⇒ Object
10 11 12 |
# File 'lib/rack/bacoo/basic_auth_request.rb', line 10 def username credentials.first end |
#valid_basic_auth? ⇒ Boolean
6 7 8 |
# File 'lib/rack/bacoo/basic_auth_request.rb', line 6 def valid_basic_auth? scheme == "basic" && credentials.length == 2 end |