app/processors/casino/login_credential_requestor_processor.rb
# Use this method to process the request.
#
# The method will call one of the following methods on the listener:
# * `#user_logged_in`: The first argument (String) is the URL (if any), the user should be redirected to.
# * `#user_not_logged_in`: The first argument is a LoginTicket. It should be stored in a hidden field with name "lt".
# * `#service_not_allowed`: The user tried to access a service that this CAS server is not allowed to serve.
#
# @param [Hash] params parameters supplied by user
# @param [Hash] cookies cookies supplied by user
# @param [String] user_agent user-agent delivered by the client
Use this method to process the request.
The method will call one of the following methods on the listener:
`#user_logged_in`: The first argument (String) is the URL (if any), the user should be redirected to.
`#user_not_logged_in`: The first argument is a LoginTicket. It should be stored in a hidden field with name "lt".
`#service_not_allowed`: The user tried to access a service that this CAS server is not allowed to serve.
Use this method to process the request . The method will call one of the following methods on the listener : ` #user_logged_in ` : The first argument ( String ) is the URL ( if any ) the user should be redirected to . ` #user_not_logged_in ` : The first argument is a LoginTicket . It should be stored in a hidden field with name " lt " . ` #service_not_allowed ` : The user tried to access a service that this CAS server is not allowed to serve .
def process(params = nil, cookies = nil, user_agent = nil)
    @params = params || {}
    @cookies = cookies || {}
    @user_agent = user_agent || {}
    begin
      @service_url = clean_service_url(@params[:service]) unless @params[:service].nil?
    rescue Addressable::URI::InvalidURIError => e
      Rails.logger.warn "Service #{@params[:service]} not valid: #{e}"
    end
    if service_allowed?
      handle_allowed_service
    end
  end
def process ( params = nil , cookies = nil , user_agent = nil ) @params = params || { } @cookies = cookies || { } @user_agent = user_agent || { } begin @service_url = clean_service_url ( @params [ :service ] ) unless @params [ :service ] . nil? rescue Addressable :: URI :: InvalidURIError => e Rails . logger . warn "Service #{@params[:service]} not valid: #{e}" end if service_allowed? handle_allowed_service end end
Use this method to process the request.
Use this method to process the request .
params
<not_specific>
cookies
<not_specific>
user_agent
<not_specific>
<not_specific>
user_agent user-agent delivered by the client
user_agent user - agent delivered by the client