This commit is contained in:
@@ -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>
|
||||||
///
|
///
|
||||||
/// </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;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
//==================================================
|
//==================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user