Token validation

This commit is contained in:
Kun Deng
2022-08-27 20:16:01 -04:00
parent fd0f487615
commit e5bea187f4
2 changed files with 29 additions and 12 deletions
+10
View File
@@ -41,6 +41,16 @@ namespace Icarus.Models
return result;
}
public bool Erroneous()
{
var result = true;
Func<string, bool> isEmpty = a => string.IsNullOrEmpty(a);
result = (!isEmpty(Scope) && !isEmpty(Audience) && !isEmpty(Issuer) &&
Expiration > 0 && Issued > 0) ? false : true;
return result;
}
#endregion
}
}