Beispiel #1
0
 public OpenIdBackgroundTask(
     ILogger <OpenIdBackgroundTask> logger,
     IOpenIdServerService serverService)
 {
     _logger        = logger;
     _serverService = serverService;
 }
Beispiel #2
0
 public OpenIdServerConfiguration(
     ILogger <OpenIdServerConfiguration> logger,
     IOpenIdServerService serverService)
 {
     _logger        = logger;
     _serverService = serverService;
 }
 public OpenIdServerConfiguration(
     IOpenIdServerService serverService,
     ShellSettings shellSettings,
     ILogger <OpenIdServerConfiguration> logger)
 {
     _serverService = serverService;
     _shellSettings = shellSettings;
     _logger        = logger;
 }
 public OpenIdServerConfiguration(
     ILogger <OpenIdServerConfiguration> logger,
     IRunningShellTable runningShellTable,
     ShellSettings shellSettings,
     IOpenIdServerService serverService)
 {
     _logger            = logger;
     _runningShellTable = runningShellTable;
     _shellSettings     = shellSettings;
     _serverService     = serverService;
 }
Beispiel #5
0
        private async Task <OpenIdServerSettings> GetServerSettingsAsync(IOpenIdServerService service)
        {
            var settings = await service.GetSettingsAsync();

            if ((await service.ValidateSettingsAsync(settings)).Any(result => result != ValidationResult.Success))
            {
                _logger.LogWarning("The OpenID Connect module is not correctly configured.");

                return(null);
            }

            return(settings);
        }
 public AccessController(
     IOpenIdApplicationManager applicationManager,
     IOpenIdAuthorizationManager authorizationManager,
     IStringLocalizer <AccessController> localizer,
     IOpenIdScopeManager scopeManager,
     ShellSettings shellSettings,
     IOpenIdServerService serverService)
 {
     S = localizer;
     _applicationManager   = applicationManager;
     _authorizationManager = authorizationManager;
     _scopeManager         = scopeManager;
     _shellSettings        = shellSettings;
 }
Beispiel #7
0
 public OpenIdServerSettingsDisplayDriver(
     IAuthorizationService authorizationService,
     IOpenIdServerService serverService,
     IHttpContextAccessor httpContextAccessor,
     INotifier notifier,
     IHtmlLocalizer <OpenIdServerSettingsDisplayDriver> stringLocalizer,
     IShellHost shellHost,
     ShellSettings shellSettings)
 {
     _authorizationService = authorizationService;
     _serverService        = serverService;
     _notifier             = notifier;
     _httpContextAccessor  = httpContextAccessor;
     _shellHost            = shellHost;
     _shellSettings        = shellSettings;
     T = stringLocalizer;
 }
 public ServerConfigurationController(
     IAuthorizationService authorizationService,
     IHtmlLocalizer <ServerConfigurationController> htmlLocalizer,
     INotifier notifier,
     IOpenIdServerService serverService,
     IDisplayManager <OpenIdServerSettings> serverSettingsDisplayManager,
     IShellHost shellHost,
     ShellSettings shellSettings)
 {
     _authorizationService = authorizationService;
     H              = htmlLocalizer;
     _notifier      = notifier;
     _serverService = serverService;
     _serverSettingsDisplayManager = serverSettingsDisplayManager;
     _shellHost     = shellHost;
     _shellSettings = shellSettings;
 }
Beispiel #9
0
 public AccessController(
     IOpenIdApplicationManager applicationManager,
     IOpenIdAuthorizationManager authorizationManager,
     IOptions <IdentityOptions> identityOptions,
     IStringLocalizer <AccessController> localizer,
     IOpenIdScopeManager scopeManager,
     ShellSettings shellSettings,
     IOpenIdServerService serverService,
     RoleManager <IRole> roleManager,
     SignInManager <IUser> signInManager,
     UserManager <IUser> userManager)
 {
     T = localizer;
     _applicationManager   = applicationManager;
     _authorizationManager = authorizationManager;
     _scopeManager         = scopeManager;
     _shellSettings        = shellSettings;
     _identityOptions      = identityOptions;
     _signInManager        = signInManager;
     _userManager          = userManager;
     _roleManager          = roleManager;
 }
Beispiel #10
0
 public OpenIdServerSettingsStep(IOpenIdServerService serverService)
 => _serverService = serverService;
Beispiel #11
0
 public OpenIdServerSettingsDisplayDriver(IOpenIdServerService serverService)
 => _serverService = serverService;
 public OpenIdServerDeploymentSource(IOpenIdServerService openIdServerService)
 {
     _openIdServerService = openIdServerService;
 }