Method: T2Server::HttpBasic#authenticate

Defined in:
lib/t2-server/net/credentials.rb

#authenticate(request) ⇒ Object

:stopdoc: Authenticate the supplied HTTP request with the credentials held within this class.



95
96
97
# File 'lib/t2-server/net/credentials.rb', line 95

def authenticate(request)
  request.basic_auth @username, @password
end