|
|
|
using Cloud_Manager.Models.ClientContractModels;
|
|
|
|
using Cloud_Manager.Models.Enums;
|
|
|
|
using Cloud_Manager.Models.Interfaces;
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
using System.IdentityModel.Tokens.Jwt;
|
|
|
|
using System.Security.Claims;
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
namespace Cloud_Manager.Models.ServiceRepo
|
|
|
|
{
|
|
|
|
public class TokenService : IKeyService
|
|
|
|
{
|
|
|
|
private IConfiguration m_configuration { get; }
|
|
|
|
private BiskilogContext m_context;
|
|
|
|
public TokenService(IConfiguration a_configuration,BiskilogContext a_context)
|
|
|
|
{
|
|
|
|
m_configuration = a_configuration;
|
|
|
|
m_context = a_context;
|
|
|
|
}
|
|
|
|
|
|
|
|
public AuthEnums ValidateKey(string a_Key)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public string GenerateKey(Contract a_clientContract, Databasemap a_database)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int? GetDatabaseIdFromKey(string a_Key)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public string GetBaseBranch(string a_Key)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|