Compartir a través de


IAuthorizationService Interface

Definition

The service contract for the Authorization service.

public interface class IAuthorizationService
public interface IAuthorizationService
type IAuthorizationService = interface
Public Interface IAuthorizationService

Remarks

For improved performance, clients may pass an instance of this interface to AuthorizationServiceClient and use that so that queries are locally cached.

Methods

CheckAuthorizationAsync(ProtectedOperation, CancellationToken)

Checks whether a previously authenticated user is authorized to perform some operation.

GetCredentialsAsync(CancellationToken)

Gets the data to include in the ClientCredentials property of a service request.

Events

AuthorizationChanged

Occurs when the client's set of authorized activities has changed. Clients that have cached previous authorization responses should invalidate the cache.

CredentialsChanged

Occurs when the credentials previously supplied to this service are at or near expiry.

Extension Methods

AuthorizeOrThrowAsync(IAuthorizationService, ProtectedOperation, CancellationToken)

Verifies that the previously authenticated user is authorized to perform some operation, or throws an exception.

Applies to