-
Notifications
You must be signed in to change notification settings - Fork 8
/
IAuthenticateUser.cs
30 lines (30 loc) · 1019 Bytes
/
IAuthenticateUser.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace CodeDesignPlus.EFCore.Middleware
{
/// <summary>
/// Provide the information of the authenticated user during the request
/// </summary>
/// <typeparam name="TKeyUser">Type of data that the user will identify</typeparam>
public interface IAuthenticateUser<TKeyUser>
{
/// <summary>
/// Gets a value boolean that indicates whether is a application
/// </summary>
bool IsApplication { get; set; }
/// <summary>
/// Gets the Id User authenticated
/// </summary>
TKeyUser IdUser { get; set; }
/// <summary>
/// Gets a value that indicates whether the user has been authenticated.
/// </summary>
bool IsAuthenticated { get; set; }
/// <summary>
/// Gets the name of the current user.
/// </summary>
string Name { get; set; }
/// <summary>
/// Gets the name of the current user.
/// </summary>
string Email { get; set; }
}
}