Skip to content

Commit 9f98d85

Browse files
committed
Make SessionFactory optional
1 parent 6f79f44 commit 9f98d85

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

MyApp/_pages/admin-ui-identity-users.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ConfigureAuth : IHostingStartup
1818
.ConfigureServices(services => {
1919
services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(
2020
options => {
21-
options.SessionFactory = () => new CustomUserSession();
21+
// options.SessionFactory = () => new CustomUserSession(); //optional
2222
options.CredentialsAuth();
2323
options.AdminUsersFeature();
2424
})));

MyApp/_pages/auth/identity-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public class ConfigureAuth : IHostingStartup
135135
appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<ApplicationUser>(
136136
// Configure ServiceStack's Integration with Identity Auth
137137
options => {
138-
options.SessionFactory = () => new CustomUserSession();
138+
// options.SessionFactory = () => new CustomUserSession(); //optional
139139
options.CredentialsAuth();
140140
})
141141
));

MyApp/_pages/auth/jwt-identity-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class ConfigureAuth : IHostingStartup
4141
.ConfigureServices(services => {
4242
services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(
4343
options => {
44-
options.SessionFactory = () => new CustomUserSession();
44+
// options.SessionFactory = () => new CustomUserSession(); //optional
4545
options.CredentialsAuth();
4646
options.JwtAuth(x => {
4747
// Enable JWT Auth Features...

MyApp/_pages/auth/migrate-to-identity-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class ConfigureAuth : IHostingStartup
8282
.ConfigureAppHost(appHost => {
8383
appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<AppUser,int>(
8484
options => {
85-
options.SessionFactory = () => new CustomUserSession();
85+
// options.SessionFactory = () => new CustomUserSession(); //optional
8686
options.CredentialsAuth();
8787
})
8888
));

MyApp/_pages/releases/v8_00.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public class ConfigureAuth : IHostingStartup
795795
appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<ApplicationUser>(
796796
// Configure ServiceStack's Integration with Identity Auth
797797
options => {
798-
options.SessionFactory = () => new CustomUserSession();
798+
// options.SessionFactory = () => new CustomUserSession(); //optional
799799
options.CredentialsAuth();
800800
})
801801
));
@@ -894,7 +894,7 @@ public class ConfigureAuth : IHostingStartup
894894
.ConfigureAppHost(appHost => {
895895
appHost.Plugins.Add(new AuthFeature(IdentityAuth.For<AppUser,int>(
896896
options => {
897-
options.SessionFactory = () => new CustomUserSession();
897+
// options.SessionFactory = () => new CustomUserSession(); //optional
898898
options.CredentialsAuth();
899899
})
900900
));

MyApp/_pages/releases/v8_01.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public class ConfigureAuth : IHostingStartup
10121012
.ConfigureServices(services => {
10131013
services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(
10141014
options => {
1015-
options.SessionFactory = () => new CustomUserSession();
1015+
// options.SessionFactory = () => new CustomUserSession(); //optional
10161016
options.CredentialsAuth();
10171017
options.AdminUsersFeature();
10181018
})));
@@ -1185,7 +1185,7 @@ public class ConfigureAuth : IHostingStartup
11851185
.ConfigureServices(services => {
11861186
services.AddPlugin(new AuthFeature(IdentityAuth.For<ApplicationUser>(
11871187
options => {
1188-
options.SessionFactory = () => new CustomUserSession();
1188+
// options.SessionFactory = () => new CustomUserSession(); //optional
11891189
options.CredentialsAuth();
11901190
options.JwtAuth(x => {
11911191
// Enable JWT Auth Features...

0 commit comments

Comments
 (0)