Class LoginController
Controller for the REST login
interface.
Inheritance
LoginController
Assembly: WMServer.dll
Syntax
[ApiController]
public class LoginController : ControllerBase
Constructors
LoginController(IConfiguration, AuthDbContext)
Declaration
public LoginController(IConfiguration config, AuthDbContext context)
Parameters
Fields
_configuration
Declaration
public IConfiguration _configuration
Field Value
Methods
CreateAPIKey(APIKeyArgs)
Declaration
[ApiExplorerSettings(IgnoreApi = true)]
[HttpPost]
[Route("apiKey")]
public Task<ActionResult<APIKey>> CreateAPIKey(LoginController.APIKeyArgs apiKeyArgs)
Parameters
Returns
Login(LoginArgs)
Declaration
[HttpPost]
[Route("login")]
public Task<ActionResult<Token>> Login(LoginController.LoginArgs credentials)
Parameters
Returns
RefreshToken(RefreshTokenArgs)
Obtain a new access token using a valid refresh token.
Declaration
[HttpPost]
[Route("refreshToken")]
public ActionResult<Token> RefreshToken(LoginController.RefreshTokenArgs refreshArgs)
Parameters
Returns