code: def get_saml_assertion(cls, ticket):
          
          # RequestID [REQUIRED] - unique identifier for the request
          request_id = uuid4()
  
          # e.g. 2014-06-02T09:21:03.071189
          timestamp = datetime.datetime.now().isoformat()
  
          return SAML_ASSERTION_TEMPLATE.format(
              request_id=request_id,
              timestamp=timestamp,
              ticket=ticket,
          ).encode('utf8')
docs: http://www.jasig.org/cas/protocol#samlvalidate-cas-3.0
  
          SAML request values:
  
          RequestID [REQUIRED]:
              unique identifier for the request
          IssueInstant [REQUIRED]:
              timestamp of the request
          samlp:AssertionArtifact [REQUIRED]:
              the valid CAS Service Ticket obtained as a response parameter at login.