Class SecurityHelper
Inheritance
System.Object
SecurityHelper
Assembly: LymeTemplateApi.Code.dll
Syntax
public static class SecurityHelper : object
Methods
GetUserInfo(Nullable<IPrincipal>, DataContext, Boolean)
Declaration
public static UserInfo GetUserInfo(IPrincipal? user, DataContext db, bool includeRoles = false)
Parameters
Type |
Name |
Description |
System.Nullable<IPrincipal> |
user |
|
DataContext |
db |
|
System.Boolean |
includeRoles |
|
Returns
GetUserInfoAsync(ClaimsPrincipal, DataContext)
Declaration
public static async Task<UserInfo> GetUserInfoAsync(ClaimsPrincipal user, DataContext db)
Parameters
Type |
Name |
Description |
ClaimsPrincipal |
user |
|
DataContext |
db |
|
Returns
IsInternalUser(IPrincipal, DataContext)
Declaration
public static bool IsInternalUser(IPrincipal user, DataContext db)
Parameters
Returns
Type |
Description |
System.Boolean |
|