We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d3898b commit 3b3339fCopy full SHA for 3b3339f
1 file changed
MyApp/Configure.Auth.cs
@@ -8,9 +8,9 @@ namespace MyApp;
8
public class ConfigureAuth : IHostingStartup
9
{
10
public void Configure(IWebHostBuilder builder) => builder
11
- .ConfigureAppHost(appHost =>
+ .ConfigureServices((context, services) =>
12
13
- appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<ApplicationUser>(options => {
+ services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(options => {
14
options.EnableCredentialsAuth = true;
15
options.SessionFactory = () => new CustomUserSession();
16
})));
0 commit comments