public IServiceProvider ConfigureServices(IServiceCollection services) { services.AddMvc(); services.Configure <IISOptions>(iis => { iis.AuthenticationDisplayName = "Windows"; iis.AutomaticAuthentication = false; }); services.AddIdentityServer(options => { options.Events.RaiseSuccessEvents = true; options.Events.RaiseFailureEvents = true; options.Events.RaiseErrorEvents = true; }) .AddInMemoryClients(ClientLoader.LoadClient(_config)) .AddInMemoryIdentityResources(ResourceLoader.LoadIdentityResources(_config)) .AddInMemoryApiResources(ResourceLoader.LoadApiResources(_config)) .AddDeveloperSigningCredential(persistKey: true) .AddSecretParser <ClientAssertionSecretParser>() .AddSecretValidator <PrivateKeyJwtSecretValidator>() .AddAppAuthRedirectUriValidator() .AddTestUsers(TestUsers.Users); return(services.BuildServiceProvider(validateScopes: true)); }
protected override async Task OnAfterRenderAsync(bool aFirstRender) { #if ReduxDevToolsEnabled await ReduxDevToolsInterop.InitAsync().ConfigureAwait(false); #endif await JsonRequestHandler.InitAsync().ConfigureAwait(false); await ClientLoader.LoadClient().ConfigureAwait(false); }
protected override async Task OnAfterRenderAsync(bool aFirstRender) { await JsonRequestHandler.InitAsync().ConfigureAwait(false); await ClientLoader.LoadClient().ConfigureAwait(false); }