17 lines
582 B
C#
17 lines
582 B
C#
|
using System.Security.Claims;
|
||
|
using System.Threading.Tasks;
|
||
|
using BlueWest.Data.Application;
|
||
|
|
||
|
namespace BlueWest.WebApi.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);
|
||
|
|
||
|
|
||
|
}
|