17 lines
585 B
C#
17 lines
585 B
C#
using System.Security.Claims;
|
|
using System.Threading.Tasks;
|
|
using BlueWest.Data.Application;
|
|
|
|
namespace BlueWest.Data.Auth.Context.Users;
|
|
|
|
public static class AuthConsts
|
|
{
|
|
/// <summary>
|
|
/// Helper object to return a negative callback
|
|
/// </summary>
|
|
public static (bool, SessionTokenUnique, ClaimsIdentity) NegativeToken => (false, null, null);
|
|
|
|
public static (bool, SessionTokenUnique, ClaimsIdentity) OkAuth(SessionTokenUnique sessionTokenUnique, ClaimsIdentity claimsIdentity, bool success = true) => (success, sessionTokenUnique, claimsIdentity);
|
|
|
|
|
|
} |