32 lines
801 B
C#
32 lines
801 B
C#
using Code.Utils;
|
|
using PrevuWebAPI.Code.Managers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Web;
|
|
|
|
namespace Code.Security
|
|
{
|
|
public class TokenManager
|
|
{
|
|
|
|
public string GenerateToken()
|
|
{
|
|
string token = string.Empty;
|
|
return token;
|
|
}
|
|
public bool ValidateToken(string token)
|
|
{
|
|
bool ok = true;
|
|
Settings.Logger.Log(NLog.LogLevel.Debug, "setting cic call");
|
|
APIClientInformationCallManager _cicMan = new APIClientInformationCallManager();
|
|
Guid clientId=_cicMan.GetClientID(token);
|
|
if (clientId == Guid.Empty)
|
|
ok = false;
|
|
return ok;
|
|
}
|
|
}
|
|
}
|