Class ServerAuthentication
Inheritance
ServerAuthentication
Assembly: Uniform.Matrix.Server.dll
public static class ServerAuthentication
Methods
|
Edit this page
View Source
GetOrigin(HttpContext)
Return the server that sent a signed request.
Declaration
public static string GetOrigin(this HttpContext context)
Parameters
Returns
|
Edit this page
View Source
Mark endpoints as federation endpoints, signed by default.
Declaration
public static TBuilder RequireFederation<TBuilder>(this TBuilder builder, bool signed = true) where TBuilder : IEndpointConventionBuilder
Parameters
| Type |
Name |
Description |
| TBuilder |
builder |
|
| bool |
signed |
|
Returns
| Type |
Description |
| TBuilder |
|
Type Parameters
| Name |
Description |
| TBuilder |
|
|
Edit this page
View Source
Add the middleware; place it after routing and inside the error handling.
Declaration
public static IApplicationBuilder UseServerAuthentication(this IApplicationBuilder app)
Parameters
Returns