Table of Contents

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

displayId ObjectId

The 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

unitId ObjectId

The 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

unitId ObjectId

The 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 null if 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

id ObjectId

The 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.