Interface IAuthorizationScopeProvider
Singleton application service contract for providing the authorization scope for a message.
Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true)]
public interface IAuthorizationScopeProvider
Methods
| Improve this Doc View SourceGetAuthorizationScopeAsync(IContext, CancellationToken)
Gets the authorization scope asynchronously.
Declaration
Task<(object scope, bool canResolve)> GetAuthorizationScopeAsync(IContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The execution context. |
System.Threading.CancellationToken | cancellationToken | Optional. the cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Object, System.Boolean>> | An asynchronous result that yields the authorization scope and a boolean value indicating whether the resolution was successful or not. |