# File lib/openshift-origin-auth-remote-user/lib/openshift/remote_user_auth_service.rb, line 17 def authenticate(request, login=nil, password=nil) if request.headers['User-Agent'] == "OpenShift" # password == iv, login == key return validate_broker_key(password, login) else authenticated_user = request.env[@trusted_header] raise OpenShift::AccessDeniedException if authenticated_user.nil? return {:username => authenticated_user, :auth_method => :login} end end