Where to put code to run after startup is completed

Probably the best place is in Configure method after UseMvc() call. That is also the place where you usually apply migrations. You can add as many classes that DI knows as parameter. For example: public void Configure(IApplicationBuilder app) or public void Configure(IApplicationBuilder app, AppUserManager userManager, IServiceProvider serviceProvider) or public void Configure(IApplicationBuilder app, MyDbContext context) If … Read more

I am getting “code challenge required” when using IdentityServer4

I am pretty much sure that you are using version 4.0 or above. Let me know if I am correct? In version 4.0 and above, the code flow + PKCE is used by default, as this is more secure than Hybrid flow according to the documentation. Here is the link https://identityserver4.readthedocs.io/en/latest/topics/grant_types.html and link to relevant … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)