Class AuthEndpoints
The auth endpoints.
public static class AuthEndpoints
- Inheritance
-
AuthEndpoints
- Inherited Members
Fields
EndpointNameTag
private const string EndpointNameTag = "Auth Management System v0.1.0-rc1"
Field Value
SemanticVersioning
private const string SemanticVersioning = "0.1.0-rc1"
Field Value
Methods
LogoutRoute(SignInManager<IdentityUser>, object)
Endpoint for logging out the current user.
private static Task<IResult> LogoutRoute(SignInManager<IdentityUser> signInManager, object empty)
Parameters
signInManager
SignInManager<IdentityUser>empty
object
Returns
MapAuthEndpoints(IEndpointRouteBuilder)
The map auth endpoints static method, called by the app builder.
public static void MapAuthEndpoints(this IEndpointRouteBuilder router)
Parameters
router
IEndpointRouteBuilder
MapIdentityBuiltinEndpoints(IEndpointRouteBuilder)
Method that maps the already built-in identity auth endpoints.
private static void MapIdentityBuiltinEndpoints(IEndpointRouteBuilder router)
Parameters
router
IEndpointRouteBuilder