You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Services/Authorization/IServiceAuthorizationMiddle...

15 lines
450 B

2 years ago
using System.Collections.Immutable;
namespace Connected.Services.Authorization;
public interface IServiceAuthorizationMiddleware : IMiddleware
{
Task<ImmutableArray<string>> ResolveClaims(ImmutableArray<string> claims);
Task Authorize<TArgs>(ServiceAuthorizationMiddlewareArgs<TArgs> args)
where TArgs : IDto;
Task<TEntity> Authorize<TArgs, TEntity>(ServiceAuthorizationMiddlewareArgs<TArgs> args, TEntity entity)
where TArgs : IDto;
}