lib/casino_core/processor/login_credential_acceptor.rb
# Use this method to process the request. It expects the username in the parameter "username" and the password
# in "password".
#
# 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.
#   The second argument (String) is the ticket-granting ticket. It should be stored in a cookie named "tgt".
#   The third argument (Time, optional, default = nil) is for "Remember Me" functionality.
#   This is the cookies expiration date. If it is `nil`, the cookie should be a session cookie.
# * `#invalid_login_ticket` and `#invalid_login_credentials`: The first argument is a LoginTicket.
#   See {CASinoCore::Processor::LoginCredentialRequestor} for details.
# * `#service_not_allowed`: The user tried to access a service that this CAS server is not allowed to serve.
# * `#two_factor_authentication_pending`: The user should be asked to enter his OTP. The first argument (String) is the ticket-granting ticket. The ticket-granting ticket is not active yet. Use SecondFactorAuthenticatonAcceptor to activate it.
#
# @param [Hash] params parameters supplied by user
# @param [String] user_agent user-agent delivered by the client
Use this method to process the request. It expects the username in the parameter "username" and the password
in "password".

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.
The second argument (String) is the ticket-granting ticket. It should be stored in a cookie named "tgt".
The third argument (Time, optional, default = nil) is for "Remember Me" functionality.
This is the cookies expiration date. If it is `nil`, the cookie should be a session cookie.
Use this method to process the request . It expects the username in the parameter " username " and the password in " password " . 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 . The second argument ( String ) is the ticket - granting ticket . It should be stored in a cookie named " tgt " . The third argument ( Time optional default = nil ) is for " Remember Me " functionality . This is the cookies expiration date . If it is ` nil ` the cookie should be a session cookie .
def process(params = nil, user_agent = nil)
    @params = params || {}
    @user_agent = user_agent
    if login_ticket_valid?(@params[:lt])
      authenticate_user
    else
      @listener.invalid_login_ticket(acquire_login_ticket)
    end
  end
def process ( params = nil , user_agent = nil ) @params = params || { } @user_agent = user_agent if login_ticket_valid? ( @params [ :lt ] ) authenticate_user else @listener . invalid_login_ticket ( acquire_login_ticket ) end end
Use this method to process the request.
Use this method to process the request .
params
<not_specific>
user_agent
<not_specific>
<not_specific>
user_agent user-agent delivered by the client
user_agent user - agent delivered by the client