Token validation

This commit is contained in:
Kun Deng committed 2022-08-27 20:16:01 -04:00
1 parent fd0f487615
commit e5bea187f4
2 files changed
+29 -12

No files matched your search

+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
}
}