class OpenShift::RemoteUserAuthService

Public Instance Methods

authenticate_request(controller) click to toggle source

The base_controller will actually pass in a password but it can't be trusted. The trusted must only be set if the web server has verified the password.

# File lib/openshift/remote_user_auth_service.rb, line 6
def authenticate_request(controller)
  username = controller.request.env[trusted_header]
  raise OpenShift::AccessDeniedException if username.blank?
  {:username => username}
end

Protected Instance Methods

trusted_header() click to toggle source
# File lib/openshift/remote_user_auth_service.rb, line 13
def trusted_header
  Rails.configuration.auth[:trusted_header]
end