This commit is contained in:
2019-01-18 16:30:30 +00:00
parent 4773d6ee7a
commit f6e683faa7

View File

@@ -31,6 +31,9 @@ namespace raven_integration
//NOTE: These tests are for Debug builds, they should still pass in a release build because none of the creds will work and it checks for 401 only
//but a true test of these JWT tokens is only in server debug mode
/// <summary>
///
/// </summary>
@@ -94,32 +97,7 @@ namespace raven_integration
}
/*
if (creds.Password == "INTEGRATION_TEST")
switch (creds.Login)
case "EXPIRED":
exp = new DateTimeOffset(DateTime.Now.AddDays(-30).ToUniversalTime(), TimeSpan.Zero);
break;
case "WRONG_ISSUER":
Issuer = "Bogus";
break;
case "NO_ALGORITHM":
Algorithm = Jose.JwsAlgorithm.none;
break;
case "WRONG_SECRET":
secretKey = System.Text.Encoding.ASCII.GetBytes("xxxxxxThisIsObviouslyWrongxxxxxx");
break;
case "TRUNCATED_SIGNATURE":
PostTransform = true;
break;
case "TRANSPOSE_SIGNATURE":
PostTransform = true;
break;
}
*/
//==================================================