# File lib/openshift-origin-auth-remote-user/lib/openshift/remote_user_auth_service.rb, line 30
    def login(request, params, cookies)
      if params['broker_auth_key'] && params['broker_auth_iv']
        return validate_broker_key(params['broker_auth_iv'], params['broker_auth_key'])
      else
        username = request.env[@trusted_header]
        Rails.logger.debug("Found" + username)
        return authenticate(request, username)
      end
    end