/// <summary> /// コンストラクタ /// </summary> public ClusterManagementLogic( ICommonDiLogic commonDiLogic, IUserRepository userRepository, INodeRepository nodeRepository, ITensorBoardContainerRepository tensorBoardContainerRepository, IClusterManagementService clusterManagementService, IUnitOfWork unitOfWork, ILoginLogic loginLogic, IGitLogic gitLogic, IRegistryLogic registryLogic, IVersionLogic versionLogic, IOptions <ContainerManageOptions> containerOptions, IOptions <ActiveDirectoryOptions> adOptions ) : base(commonDiLogic) { this.tensorBoardContainerRepository = tensorBoardContainerRepository; this.userRepository = userRepository; this.nodeRepository = nodeRepository; this.clusterManagementService = clusterManagementService; this.loginLogic = loginLogic; this.gitLogic = gitLogic; this.registryLogic = registryLogic; this.versionLogic = versionLogic; this.unitOfWork = unitOfWork; this.containerOptions = containerOptions.Value; this.adOptions = adOptions.Value; }
public ActiveDirectoryManager_Tests() { _activeDirectoryOptions = new ActiveDirectoryOptions() { Password = "******", Url = "https://google.com", Username = "******" }; _activeDirectoryManager = new FakeActiveDirectoryManager(new OptionsWrapper <ActiveDirectoryOptions>(_activeDirectoryOptions)); }
public BaseActiveDirectoryContext(HttpContext context, ActiveDirectoryOptions options) : base(context) { if (options == null) { throw new ArgumentNullException(nameof(options)); } Options = options; }
public BaseActiveDirectoryContext(HttpContext context, ActiveDirectoryOptions options) : base(context) { if (options == null) { throw new ArgumentNullException(nameof(options)); } Options = options; }
/// <summary> /// コンストラクタ /// </summary> public LoginLogic( ITenantRepository tenantRepository, IUserRepository userRepository, ISettingRepository settingRepository, IUnitOfWork unitOfWork, ICommonDiLogic commonDiLogic, IOptions <ActiveDirectoryOptions> adOptions, IOptions <WebSecurityOptions> webSecurityOptions) : base(commonDiLogic) { this.tenantRepository = tenantRepository; this.userRepository = userRepository; this.settingRepository = settingRepository; this.unitOfWork = unitOfWork; this.adOptions = adOptions.Value; this.webSecurityOptions = webSecurityOptions.Value; }
/// <summary> /// Enables the NTLM route for challenge/response handshaking /// </summary> /// <param name="app"></param> /// <param name="options">An ActiveDirectoryOptions configuration</param> /// <returns></returns> public static IApplicationBuilder UseNtlm(this IApplicationBuilder app, ActiveDirectoryOptions options = null, UrlEncoder encoder = null) { if (app == null) { throw new ArgumentNullException(nameof(app)); } //set default encoder if none is provided if (encoder == null) encoder = UrlEncoder.Default; if (options != null) { return app.UseMiddleware<ActiveDirectoryMiddleware>(options, encoder); } return app.UseMiddleware<ActiveDirectoryMiddleware>(encoder); }
public static IApplicationBuilder UseWindowsIntegratedAuthentication(this IApplicationBuilder app, ActiveDirectoryOptions options = null) { throw new NotImplementedException("Windows Integrated Authentication support is not yet ready :("); }
public static IApplicationBuilder UseKerberos(this IApplicationBuilder app, ActiveDirectoryOptions options = null) { throw new NotImplementedException("Kerberos support is not yet ready :("); }
public AuthenticationSucceededContext(HttpContext context, ActiveDirectoryOptions options) : base(context, options) { }
public AuthenticationFailedContext(HttpContext context, ActiveDirectoryOptions options) : base(context, options) { }