File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ public class ConfigureAuth : IHostingStartup
99 public void Configure ( IWebHostBuilder builder ) => builder
1010 . ConfigureServices ( services => {
1111 services . AddSingleton < IAuthHttpGateway , AuthHttpGateway > ( ) ;
12- } )
13- . ConfigureAppHost ( appHost =>
14- {
15- appHost . Plugins . Add ( new AuthFeature ( IdentityAuth . For < ApplicationUser > ( options => {
12+
13+ services . AddPlugin ( new AuthFeature ( IdentityAuth . For < ApplicationUser > ( options => {
1614 options . SessionFactory = ( ) => new CustomUserSession ( ) ;
1715 options . CredentialsAuth ( ) ;
1816 options . AdminUsersFeature ( ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public void Configure(IWebHostBuilder builder) => builder
1313 services . AddSwaggerGen ( ) ;
1414
1515 services . AddServiceStackSwagger ( ) ;
16- services . AddBasicAuth < Data . ApplicationUser > ( ) ;
16+ services . AddBasicAuth < ApplicationUser > ( ) ;
1717 //services.AddJwtAuth();
1818
1919 services . AddTransient < IStartupFilter , StartupFilter > ( ) ;
You can’t perform that action at this time.
0 commit comments