def get_context_data(self, **kwargs): pgt = self.request.GET.get('pgt') target_service = self.request.GET.get('targetService') try: pt = validate_proxy_granting_ticket(pgt, target_service) return {'ticket': pt, 'error': None} except ValidationError as e: logger.warning("%s %s" % (e.code, e)) return {'ticket': None, 'error': e}
def get_context_data(self, **kwargs): pgt = self.request.GET.get('pgt') target_service = self.request.GET.get('targetService') pt, error = validate_proxy_granting_ticket(pgt, target_service) return {'ticket': pt, 'error': error}
def get_context_data(self, **kwargs): pgt = self.request.GET.get('pgt') target_service = self.request.GET.get('targetService') pt, error = validate_proxy_granting_ticket(pgt, target_service) return {'ticket': pt, 'error': error}