/// <summary> /// Initializes an instance of <see cref="SamlSecurityToken"/>. /// </summary> /// <param name="assertion">A <see cref="SamlAssertion"/> to initialize from.</param> public SamlSecurityToken(SamlAssertion assertion) { Assertion = assertion ?? throw LogArgumentNullException(nameof(assertion)); }
/// <summary> /// Initializes an instance of <see cref="SamlSecurityToken"/>. /// </summary> protected SamlSecurityToken() { Assertion = new SamlAssertion("_" + Guid.NewGuid().ToString(), ClaimsIdentity.DefaultIssuer, DateTime.UtcNow, new SamlConditions(), new SamlAdvice(), new List <SamlStatement>()); }