Class: CASServer::Controllers::Validate
- Inherits:
-
R
- Object
- R
- CASServer::Controllers::Validate
- Includes:
- CASServer::CAS
- Defined in:
- lib/casserver/controllers.rb
Overview
2.4
Instance Method Summary collapse
-
#get ⇒ Object
2.4.1.
Methods included from CASServer::CAS
clean_service_url, #generate_login_ticket, #generate_proxy_granting_ticket, #generate_proxy_ticket, #generate_service_ticket, #generate_ticket_granting_ticket, #send_logout_notification_for_service_ticket, #service_uri_with_ticket, #validate_login_ticket, #validate_proxy_granting_ticket, #validate_proxy_ticket, #validate_service_ticket, #validate_ticket_granting_ticket
Instance Method Details
#get ⇒ Object
2.4.1
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/casserver/controllers.rb', line 285 def get CASServer::Utils::log_controller_action(self.class, input) # required @service = clean_service_url(input['service']) @ticket = input['ticket'] # optional @renew = input['renew'] st, @error = validate_service_ticket(@service, @ticket) @success = st && !@error @username = st.username if @success @status = CASServer::Controllers.response_status_from_error(@error) if @error render :validate end |