Class AuthorizationAPIMiddleware
- Namespace
- FoundationaLLM.AuthorizationEngine.Middleware
- Assembly
- FoundationaLLM.AuthorizationEngine.dll
Middleware that retrieves context information for the current HTTP request. This middleware should be registered in the application's Startup.Configure method.
public class AuthorizationAPIMiddleware
- Inheritance
-
AuthorizationAPIMiddleware
- Inherited Members
- Extension Methods
Constructors
AuthorizationAPIMiddleware(RequestDelegate)
Initializes a new instance of the AuthorizationAPIMiddleware class.
public AuthorizationAPIMiddleware(RequestDelegate next)
Parameters
next
RequestDelegate
Methods
InvokeAsync(HttpContext, IAuthorizationCore)
Executes the middleware.
public Task InvokeAsync(HttpContext context, IAuthorizationCore authorizationCore)
Parameters
context
HttpContextThe current HTTP request context.
authorizationCore
IAuthorizationCore