Skip to content

Commit 3b3339f

Browse files
committed
Update to use aspnet core mapped endpoints.
1 parent 1d3898b commit 3b3339f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MyApp/Configure.Auth.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace MyApp;
88
public class ConfigureAuth : IHostingStartup
99
{
1010
public void Configure(IWebHostBuilder builder) => builder
11-
.ConfigureAppHost(appHost =>
11+
.ConfigureServices((context, services) =>
1212
{
13-
appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<ApplicationUser>(options => {
13+
services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(options => {
1414
options.EnableCredentialsAuth = true;
1515
options.SessionFactory = () => new CustomUserSession();
1616
})));

0 commit comments

Comments
 (0)