class JunglePath::Rack::BasicCredentials::Basic::Request
Public Instance Methods
basic?()
click to toggle source
# File lib/jungle_path/rack/basic_credentials.rb, line 51 def basic? "basic" == scheme end
credentials()
click to toggle source
# File lib/jungle_path/rack/basic_credentials.rb, line 55 def credentials @credentials ||= params.unpack("m*").first.split(/:/, 2) end
password()
click to toggle source
# File lib/jungle_path/rack/basic_credentials.rb, line 63 def password credentials.last end
username()
click to toggle source
# File lib/jungle_path/rack/basic_credentials.rb, line 59 def username credentials.first end