Class IvSecurityContextMiddleware
An owin middleware that populates the CurrentUser with the current user details for the ImageVault platform
Inheritance
System.Object
IvSecurityContextMiddleware
Assembly: ImageVault.Web.dll
Syntax
public class IvSecurityContextMiddleware : OwinMiddleware
Constructors
IvSecurityContextMiddleware(OwinMiddleware, String)
Declaration
public IvSecurityContextMiddleware(OwinMiddleware next, string identityPrefix)
Parameters
Type |
Name |
Description |
Microsoft.Owin.OwinMiddleware |
next |
|
System.String |
identityPrefix |
|
Methods
Invoke(IOwinContext)
Declaration
public override Task Invoke(IOwinContext context)
Parameters
Type |
Name |
Description |
Microsoft.Owin.IOwinContext |
context |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
SetCurrentUser(IPrincipal, String)
Declaration
public static void SetCurrentUser(IPrincipal user, string identityPrefix = null)
Parameters
Type |
Name |
Description |
System.Security.Principal.IPrincipal |
user |
|
System.String |
identityPrefix |
|