public BasicAuthenticationSchemaHandler(IOptionsMonitor <AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, ICustomAuthenticationService authService) : base(options, logger, encoder, clock) { _authenticationService = authService; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, ICustomAuthenticationService customAuthenticationService) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); var db = app.ApplicationServices.GetService <SecurityContext>(); CreateData(db); app.UseSimpleAuthentication(); app.UseMvcWithDefaultRoute(); // Enable middleware to serve generated Swagger as a JSON endpoint. app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS etc.), specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Dojo API V1"); }); }
public AuthenticationController(IAuthenticationProvider authenticationProvider, ICustomAuthenticationService authenticationService) { _authenticationProvider = authenticationProvider; _authenticationService = authenticationService; }
#pragma warning disable CS1591 public AuthController(ICustomAuthenticationService authenticationService) { _authenticationService = authenticationService; }
public AuthenticationProvider(ICustomAuthenticationService authenticationService) { _authenticationService = authenticationService; }
public DevelopmentAuthenticationProvider(ICustomAuthenticationService authenticationService) : base(authenticationService) { _authenticationService = authenticationService; }
public UsersController(IUsersRepository users, ICustomAuthenticationService authentication, IConfiguration config) { _usersRepository = users; _authentication = authentication; _pageSize = int.Parse(config["UsersFindPageSize"]); }
//Modified Code public ApplicationUserManager(IUserStore <ApplicationUser> store, ICustomAuthenticationService service) : base(store) { this.service = service; }
public SimpleAuthenticationMiddleware(RequestDelegate next, ICustomAuthenticationService authenticationService) { _next = next; _authenticationService = authenticationService; }