code: def get(request):
          
          # store wanted GET parameters
          service = request.GET.get('service')
          ticket = request.GET.get('ticket')
          renew = True if request.GET.get('renew') else False
          # service and ticket parameters are mandatory
          if service and ticket:
              try:
                  # search for the ticket, associated at service that is not yet validated but is
                  # still valid
                  ticket = ServiceTicket.get(ticket, renew, service)
                  logger.info(
                      "Validate: Service ticket %s validated, user %s authenticated on service %s" % (
                          ticket.value,
                          ticket.user.username,
                          ticket.service
                      )
                  )
                  return HttpResponse(
                      u"yes\n%s\n" % ticket.username(),
                      content_type="text/plain; charset=utf-8"
                  )
              except ServiceTicket.DoesNotExist:
                  logger.warning(
                      (
                          "Validate: Service ticket %s not found or "
                          "already validated, auth to %s failed"
                      ) % (
                          ticket,
                          service
                      )
                  )
                  return HttpResponse(u"no\n", content_type="text/plain; charset=utf-8")
          else:
              logger.warning("Validate: service or ticket missing")
              return HttpResponse(u"no\n", content_type="text/plain; charset=utf-8")
docs: method called on GET request on this view
  
              :param django.http.HttpRequest request: The current request object
              :return:
                  * ``HttpResponse("yes\\nusername")`` if submited (service, ticket) is valid
                  * else ``HttpResponse("no\\n")``
              :rtype: django.http.HttpResponse