IOT Dash
Public Member Functions | List of all members
IotDash.Controllers.V1.IdentityController Class Reference
Inheritance diagram for IotDash.Controllers.V1.IdentityController:
Inheritance graph
[legend]
Collaboration diagram for IotDash.Controllers.V1.IdentityController:
Collaboration graph
[legend]

Public Member Functions

 IdentityController (IIdentityService identity, IUserStore users)
 
async Task< IActionResult > Register ([FromBody] UserRegistrationRequest request)
 
async Task< IActionResult > Login ([FromBody] UserLoginRequest request)
 
async Task< IActionResult > Refresh ([FromBody] RefreshTokenRequest request)
 
Task< IActionResult > GetUser ()
 

Detailed Description

The IotDash.Controllers.V1.IdentityController provides route endpoints for user account management.

Member Function Documentation

◆ GetUser()

Task< IActionResult > IotDash.Controllers.V1.IdentityController.GetUser ( )
inline

Get information about the authorization token bearer.

Returns

◆ Login()

async Task< IActionResult > IotDash.Controllers.V1.IdentityController.Login ( [FromBody] UserLoginRequest  request)
inline

Get a new authorization token for the user.

Parameters
requestCredentials of the user to log-in.
Returns
New token pair wrapped in AuthResponse.

◆ Refresh()

async Task< IActionResult > IotDash.Controllers.V1.IdentityController.Refresh ( [FromBody] RefreshTokenRequest  request)
inline

Provide a new token pair in exchange for a valid refresh token and an expired JWT token.

Parameters
requestToken pair consisting of a valid refresh token and an expired JWT token.
Returns
New token pair wrapped in AuthResponse.

◆ Register()

async Task< IActionResult > IotDash.Controllers.V1.IdentityController.Register ( [FromBody] UserRegistrationRequest  request)
inline

Register a new user with the given credentials.

Parameters
request
Returns

The documentation for this class was generated from the following file: