Repository navigation
DiGi.User.WebAPI.Classes
Controller responsible for handling user-related operations, including authentication and access to protected data.
public class UserController : DiGi.WebAPI.Classes.WebAPIControllerInheritance System.Object → Microsoft.AspNetCore.Mvc.ControllerBase → DiGi.Core.Interfaces.IObject → DiGi.WebAPI.Classes.WebAPIController → UserController
Initializes a new instance of the UserController class.
public UserController(DiGi.WebAPI.Classes.SecurityKeyManager securityKeyManager);securityKeyManager DiGi.WebAPI.Classes.SecurityKeyManager
The security key manager used for managing cryptographic keys.
Retrieves secure data that requires authorization.
public Microsoft.AspNetCore.Mvc.IActionResult GetProtectedData();Microsoft.AspNetCore.Mvc.IActionResult
An Microsoft.AspNetCore.Mvc.IActionResult containing the protected data or an authorization error.
Authenticates a user and generates a JWT security token.
public Microsoft.AspNetCore.Mvc.IActionResult Login(DiGi.User.Classes.UserLogin userLogin);userLogin DiGi.User.Classes.UserLogin
The login credentials of the user.
Microsoft.AspNetCore.Mvc.IActionResult
An Microsoft.AspNetCore.Mvc.IActionResult containing the generated token upon success, or an unauthorized result.