Exemple #1
0
 def cb(data):
     recorded_service = data[u'service']
     if not are_urls_equal(recorded_service, service):
         return defer.fail(
             InvalidService(
                 "Issued service '%s' does not match presented service '%s'."
                 % (recorded_service, service)))
 def cb(data):
     if not are_urls_equal(data['service'], service):
         return defer.fail(InvalidService(
             "Issued service does not match presented service."))
     if requirePrimaryCredentials and data['primary_credentials'] == False:
         return defer.fail(InvalidTicket("This ticket was not issued in response to primary credentials."))
     return data
 def cb(data):
     recorded_service = data["service"]
     if not are_urls_equal(recorded_service, service):
         return defer.fail(
             InvalidService(
                 "Issued service '%s' does not match presented service '%s'." % (recorded_service, service)
             )
         )
 def cb(data):
     if not are_urls_equal(data[u'service'], service):
         log.msg("[WARNING] ST service '{0}' != /serviceValidate service '{1}'".format(
             data[u'service'], service))
         return defer.fail(InvalidService(
             "Issued service does not match validation service."))
     if requirePrimaryCredentials and data['primary_credentials'] == False:
         return defer.fail(InvalidTicket("This ticket was not issued in response to primary credentials."))
     return data
Exemple #5
0
 def cb(data):
     if not are_urls_equal(data[u'service'], service):
         log.msg(
             "[WARNING] ST service '{0}' != /serviceValidate service '{1}'"
             .format(data[u'service'], service))
         return defer.fail(
             InvalidService(
                 "Issued service does not match validation service."
             ))
     if requirePrimaryCredentials and data[
             'primary_credentials'] == False:
         return defer.fail(
             InvalidTicket(
                 "This ticket was not issued in response to primary credentials."
             ))
     return data
 def cb(data):
     if not are_urls_equal(data["service"], service):
         return defer.fail(InvalidService("Issued service does not match presented service."))
     if requirePrimaryCredentials and data["primary_credentials"] == False:
         return defer.fail(InvalidTicket("This ticket was not issued in response to primary credentials."))
     return data