Interface IAuthService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface IAuthService
- Extension Methods
Methods
DeleteByDisplayId(ObjectId)
Asynchronously deletes the record identified by the specified display identifier.
Task<bool> DeleteByDisplayId(ObjectId displayId)
Parameters
displayIdObjectIdThe display identifier of the record to delete.
Returns
- Task<bool>
A task that represents the asynchronous operation, containing a value indicating whether the record was successfully deleted.
DeleteByUnitId(ObjectId)
Asynchronously deletes the entity associated with the specified unit identifier.
Task<bool> DeleteByUnitId(ObjectId unitId)
Parameters
unitIdObjectIdThe unique identifier of the unit whose associated entity should be deleted.
Returns
- Task<bool>
A task that represents the asynchronous operation, containing a value indicating whether the deletion was successful.
GetByUnitId(ObjectId)
Retrieves a list of authorizations associated with the specified unit identifier.
Task<List<Authorization>> GetByUnitId(ObjectId unitId)
Parameters
unitIdObjectIdThe unique identifier of the unit whose authorizations are being queried.
Returns
- Task<List<Authorization>>
A task that represents the asynchronous operation, containing a list of Authorization objects matching the provided unit identifier.
GetLoginResponse()
Asynchronously retrieves the current login response, returning null when no login state is available.
Task<LoginResponse?> GetLoginResponse()
Returns
- Task<LoginResponse>
A Task<TResult> that resolves to the current LoginResponse, or
nullif no login response exists.
GetToken()
Asynchronously retrieves a token.
Task<string> GetToken()
Returns
- Task<string>
A task that represents the asynchronous operation. The task result contains the retrieved token string.
GetUserAuthorities(ObjectId)
Retrieves the list of authorizations associated with the specified user identifier.
Task<List<Authorization>> GetUserAuthorities(ObjectId id)
Parameters
idObjectIdThe unique identifier of the user whose authorizations are being retrieved.
Returns
- Task<List<Authorization>>
A task that represents the asynchronous operation, containing the list of authorizations for the user.