TheCultOfRa
❔ How to get triggering authentication scheme name in custom cookie authentication event
I have a custom cookie authentication event where I want to inject the authentication handler into the constructor and then retrieve the name of the authentication scheme. I am unsure of how to do this since there's an abstraction that uses the AuthenticationScheme property but the interface does not.
3 replies
❔ Unable to resolve service for type 'NodaTime.IClock' while attempting to activate
Hello, I am using NodaTime in a service but when that service tries to register, it says it can't find IClock, but I can't figure out where in the documentation IClock is registered as a service.
4 replies
How does EFCore Migrations work for actual deployment?
So I understand that when locally developing I can do
and that I can even start the initial migration on startup via
ApplicationDbContext.Database.Migrate
but this doesn't seem encouraged in production.
but when say deploying my app as a docker container, how do I exactly run those same commands? Do I do them as part of my dockerfile or dockercompose or something?193 replies
Does anyone have any thorough resources or documentation on how to implement a custom Identity setup
I am trying to implement Identity on a project that does not already include it. I have found some resources to help but I cannot find any on setting up custom IdentityRoles except for this one https://www.youtube.com/watch?v=suq3cMv1V2o&list=PL82C6-O4XrHccS2fD8tdEF9UoO3VwKeGK&index=7. Does anyone have any other resources that could help me set this up?
11 replies