Add project files.

This commit is contained in:
Sergio Matias Urquin
2025-04-29 18:57:20 -06:00
parent 62e9799537
commit d5925a6476
44 changed files with 2716 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
// ***********************************************************************
// <copyright file="ITokenService.cs">
// Heath
// </copyright>
// ***********************************************************************
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Core.Cerberos.Adapters.Contracts
{
/// <summary>
/// Interface for authenticacion service.
/// </summary>
public interface ITokenService
{
/// <summary>
/// Refreshes the access token.
/// </summary>
string GenerateAccessToken(TokenAdapter adapter);
/// <summary>
/// Refreshes the access token.
/// </summary>
IActionResult RefreshAccessToken(HttpContext context, TokenAdapter adapter);
/// <summary>
/// Extracts the user email claim from the http context.
/// </summary>
string GetEmailClaim(HttpContext httpContext);
}
}