31 lines
561 B
C#
31 lines
561 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Code.Security
|
|
{
|
|
public class RESTSecurityManager
|
|
{
|
|
|
|
public static bool IsTokenValid(string token)
|
|
{
|
|
bool result = false;
|
|
|
|
try
|
|
{
|
|
TokenManager m = new TokenManager();
|
|
result=m.ValidateToken(token);
|
|
|
|
}
|
|
catch (Exception dd)
|
|
{
|
|
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|