Skip to content

Commit 1e3d42a

Browse files
committed
Update AppHost.cs
1 parent 9638a6e commit 1e3d42a

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

Test/AppHost.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Funq;
22
using ServiceStack;
3-
using ServiceStack.Api.OpenApi;
43
using ServiceStack.Auth;
54
using ServiceStack.Configuration;
65
using ServiceStack.Data;
@@ -16,7 +15,7 @@
1615

1716
namespace Test;
1817

19-
public partial class AppHost : AppHostBase, IHostingStartup
18+
public class AppHost : AppHostBase, IHostingStartup
2019
{
2120
public void Configure(IWebHostBuilder builder) => builder
2221
.ConfigureServices(services => {
@@ -100,25 +99,22 @@ public override void Configure(Container container)
10099
});
101100

102101
Plugins.Add(new AuthFeature(() => new CustomUserSession(),
103-
new IAuthProvider[]
104-
{
105-
new JwtAuthProvider(AppSettings)
102+
[
103+
new JwtAuthProvider(AppSettings)
106104
{
107105
AllowInQueryString = true,
108106
},
109107
new BasicAuthProvider(AppSettings),
110108
new CredentialsAuthProvider(AppSettings),
111109
new TwitterAuthProvider(AppSettings), //Sign-in with Twitter
112110
new FacebookAuthProvider(AppSettings), //Sign-in with Facebook
113-
new GithubAuthProvider(AppSettings), //Sign-in with GitHub
114-
}) {
111+
new GithubAuthProvider(AppSettings) //Sign-in with GitHub
112+
]) {
115113
// AllowGetAuthenticateRequests = req => true,
116114
IncludeRegistrationService = true,
117115
IncludeAssignRoleServices = true,
118116
});
119117

120-
Plugins.Add(new OpenApiFeature());
121-
// Plugins.Add(new ValidationFeature());
122118
Plugins.Add(new AutoQueryFeature
123119
{
124120
MaxLimit = 1000,

0 commit comments

Comments
 (0)