public ExtendedAuthorizationMiddleware(IAuthorizationResolver authorizationResolver, ILoggerFactory loggerFactory, RequestDelegate next, IOptionsMonitor <ExtendedAuthorizationOptions> optionsMonitor) { this.AuthorizationResolver = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver)); this.Logger = (loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory))).CreateLogger(this.GetType()); this.Next = next ?? throw new ArgumentNullException(nameof(next)); this.OptionsMonitor = optionsMonitor ?? throw new ArgumentNullException(nameof(optionsMonitor)); }
public Facade(IAuthenticationSchemeRetriever authenticationSchemeRetriever, IAuthorizationResolver authorizationResolver, IClientStore clientStore, IDecorationLoader decorationLoader, IEventService events, IOptionsMonitor <ExceptionHandlingOptions> exceptionHandling, IFeatureManager featureManager, IHttpContextAccessor httpContextAccessor, IIdentityFacade identity, IOptionsMonitor <ExtendedIdentityServerOptions> identityServer, IIdentityServerInteractionService interaction, IStringLocalizerFactory localizerFactory, ILoggerFactory loggerFactory, IOptionsMonitor <RequestLocalizationOptions> requestLocalization, IServiceProvider serviceProvider) { this.AuthenticationSchemeRetriever = authenticationSchemeRetriever ?? throw new ArgumentNullException(nameof(authenticationSchemeRetriever)); this.AuthorizationResolver = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver)); this.ClientStore = clientStore ?? throw new ArgumentNullException(nameof(clientStore)); this.DecorationLoader = decorationLoader ?? throw new ArgumentNullException(nameof(decorationLoader)); this.Events = events ?? throw new ArgumentNullException(nameof(events)); this.ExceptionHandling = exceptionHandling ?? throw new ArgumentNullException(nameof(exceptionHandling)); this.FeatureManager = featureManager ?? throw new ArgumentNullException(nameof(featureManager)); this.HttpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); this.Identity = identity ?? throw new ArgumentNullException(nameof(identity)); this.IdentityServer = identityServer ?? throw new ArgumentNullException(nameof(identityServer)); this.Interaction = interaction ?? throw new ArgumentNullException(nameof(interaction)); this.LocalizerFactory = localizerFactory ?? throw new ArgumentNullException(nameof(localizerFactory)); this.LoggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); this.RequestLocalization = requestLocalization ?? throw new ArgumentNullException(nameof(requestLocalization)); if (serviceProvider == null) { throw new ArgumentNullException(nameof(serviceProvider)); } if (featureManager.IsEnabled(Feature.Saml)) { this.SamlInteraction = serviceProvider.GetRequiredService <ISamlInteractionService>(); } }
public RoleController(IAuthorizationResolver authorizationResolver, IOptionsMonitor <ExceptionHandlingOptions> exceptionHandlingOptionsMonitor, ILoggerFactory loggerFactory) : base(loggerFactory) { this.AuthorizationResolver = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver)); this.ExceptionHandlingOptionsMonitor = exceptionHandlingOptionsMonitor ?? throw new ArgumentNullException(nameof(exceptionHandlingOptionsMonitor)); }
public Facade(IAuthorizationResolver authorizationResolver, ILoggerFactory loggerFactory) { this.AuthorizationResolver = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver)); this.LoggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); }
public PermissionHandler(IAuthorizationResolver authorizationResolver) { this.AuthorizationResolver = authorizationResolver ?? throw new ArgumentNullException(nameof(authorizationResolver)); }