Class ClaimsClientSecurityManager
This IClientSecurityManager extracts identity values from a claims principal
Inheritance
System.Object
ClaimsClientSecurityManager
Implements
Namespace: ImageVault.Common.Security
Assembly: ImageVault.Common.dll
Syntax
public class ClaimsClientSecurityManager : Object, IClientSecurityManager
Constructors
ClaimsClientSecurityManager(ILogger<ClaimsClientSecurityManager>)
Declaration
public ClaimsClientSecurityManager(ILogger<ClaimsClientSecurityManager> logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger<ClaimsClientSecurityManager> | logger |
Methods
GetRoleIdentities(IPrincipal)
Gets the role identities for the supplied principal
Declaration
public IEnumerable<string> GetRoleIdentities(IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetUserIdentity(IPrincipal)
Gets the user identity for the principal
Declaration
public string GetUserIdentity(IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal |
Returns
Type | Description |
---|---|
System.String |