|
IOT Dash
|

Public Member Functions | |
| Task< AuthResponse > | RegisterAsync (string username, string password) |
| Task< AuthResponse > | LoginAsync (string username, string password) |
| Task< AuthResponse > | RefreshTokenAsync (string token, string refreshToken) |
| Task< int > | CleanupRefreshTokens () |
This service provides basic user account functionality.
| Task< int > IotDash.Services.IIdentityService.CleanupRefreshTokens | ( | ) |
Delete expired or revoked refresh tokens from the database.
Implemented in IotDash.Services.Implementations.IdentityService.
| Task< AuthResponse > IotDash.Services.IIdentityService.LoginAsync | ( | string | username, |
| string | password | ||
| ) |
Authenticate a user.
| username | Username of the user. |
| password | Password of the user. |
Implemented in IotDash.Services.Implementations.IdentityService.
| Task< AuthResponse > IotDash.Services.IIdentityService.RefreshTokenAsync | ( | string | token, |
| string | refreshToken | ||
| ) |
Authenticate a user from a valid refresh token.
| token | An expired JWT token of the user. |
| refreshToken | A valid refresh token belonging to the user. |
Implemented in IotDash.Services.Implementations.IdentityService.
| Task< AuthResponse > IotDash.Services.IIdentityService.RegisterAsync | ( | string | username, |
| string | password | ||
| ) |
Register new user account, and authenticate the user immediately.
| username | Username of the new user. |
| password | Password of the new user. |
Implemented in IotDash.Services.Implementations.IdentityService.