Class: JunglePath::Rack::BasicCredentials::Basic::Request
- Inherits:
-
Rack::Auth::AbstractRequest
- Object
- Rack::Auth::AbstractRequest
- JunglePath::Rack::BasicCredentials::Basic::Request
- Defined in:
- lib/jungle_path/rack/basic_credentials.rb
Instance Method Summary collapse
Instance Method Details
#basic? ⇒ Boolean
51 52 53 |
# File 'lib/jungle_path/rack/basic_credentials.rb', line 51 def basic? "basic" == scheme end |
#credentials ⇒ Object
55 56 57 |
# File 'lib/jungle_path/rack/basic_credentials.rb', line 55 def credentials @credentials ||= params.unpack("m*").first.split(/:/, 2) end |
#password ⇒ Object
63 64 65 |
# File 'lib/jungle_path/rack/basic_credentials.rb', line 63 def password credentials.last end |
#username ⇒ Object
59 60 61 |
# File 'lib/jungle_path/rack/basic_credentials.rb', line 59 def username credentials.first end |