def generate_ticket_granting_ticket(username, extra_attributes = {})# 3.6 (ticket granting cookie/ticket)tgt = TicketGrantingTicket.newtgt.ticket = "TGC-" + CASServer::Utils.random_stringtgt.username = usernametgt.extra_attributes = extra_attributestgt.client_hostname = @env['HTTP_X_FORWARDED_FOR'] || @env['REMOTE_HOST'] || @env['REMOTE_ADDR']$LOG.debug tgt.inspecttgt.save!$LOG.debug("Generated ticket granting ticket '#{tgt.ticket}' for user" +" '#{tgt.username}' at '#{tgt.client_hostname}'" +(extra_attributes.blank? ? "" : " with extra attributes #{extra_attributes.inspect}"))tgtend
--
You received this message because you are subscribed to the Google Groups "RubyCAS" group.
To post to this group, send email to rubycas...@googlegroups.com.
To unsubscribe from this group, send email to rubycas-serve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubycas-server?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/HHM5UFD3xtEJ.
On Saturday, October 27, 2012 at 02:27 , t.pickett66 wrote:
To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/HHM5UFD3xtEJ.

To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/SgmKCdFbofsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/rubycas-server/-/c4AUXu0k4JoJ.