◆ CleanupRefreshTokens()
async Task< int > IotDash.Services.Implementations.IdentityService.CleanupRefreshTokens |
( |
| ) |
|
|
inline |
◆ LoginAsync()
async Task< AuthResponse > IotDash.Services.Implementations.IdentityService.LoginAsync |
( |
string |
username, |
|
|
string |
password |
|
) |
| |
|
inline |
Authenticate a user.
- Parameters
-
username | Username of the user. |
password | Password of the user. |
- Returns
- Result of the authentication.
Implements IotDash.Services.IIdentityService.
◆ RefreshTokenAsync()
async Task< AuthResponse > IotDash.Services.Implementations.IdentityService.RefreshTokenAsync |
( |
string |
token, |
|
|
string |
refreshToken |
|
) |
| |
|
inline |
Authenticate a user from a valid refresh token.
- Parameters
-
token | An expired JWT token of the user. |
refreshToken | A valid refresh token belonging to the user. |
- Returns
- Result of the authentication.
Implements IotDash.Services.IIdentityService.
◆ RegisterAsync()
async Task< AuthResponse > IotDash.Services.Implementations.IdentityService.RegisterAsync |
( |
string |
username, |
|
|
string |
password |
|
) |
| |
|
inline |
Register new user account, and authenticate the user immediately.
- Parameters
-
username | Username of the new user. |
password | Password of the new user. |
- Returns
- Result of the authentication.
Implements IotDash.Services.IIdentityService.
The documentation for this class was generated from the following file:
- Services/Implementations/ModelStore/IdentityService.cs