This commit is contained in:
2019-01-18 00:43:05 +00:00
parent b28a2d585b
commit 03f9c87d79

View File

@@ -76,7 +76,7 @@ namespace AyaNova.Api.Controllers
#region TESTING
//TEST JWT's with various flaws for testing purposes:
if (creds.Password == "INTEGRATION_TEST")
if (creds.Login == "INTEGRATION_TEST")
{
//build the key (JWT set in startup.cs)
@@ -89,7 +89,7 @@ namespace AyaNova.Api.Controllers
var Algorithm = Jose.JwsAlgorithm.HS256;
//Pre JWT creation test payloads
switch (creds.Login)
switch (creds.Password)
{
case "EXPIRED":
exp = new DateTimeOffset(DateTime.Now.AddDays(-30).ToUniversalTime(), TimeSpan.Zero);
@@ -119,7 +119,7 @@ namespace AyaNova.Api.Controllers
//"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTQ0NTU5NzAwIiwiZXhwIjoiMTU0NzE1MTcwMCIsImlzcyI6ImF5YW5vdmEuY29tIiwiaWQiOiIxIiwiYXlhbm92YS9yb2xlcyI6IjMyNzY3In0.fMq_8Dvia63rzN_U2zjczPvUNM40OEAeI4VOeV6ulGw"
//Post JWT creation test payloads
switch (creds.Login)
switch (creds.Password)
{
case "TRUNCATED_SIGNATURE":
TestToken = TestToken.Substring(0, TestToken.Length - 3);