|
1 | 1 | using Funq; |
2 | 2 | using ServiceStack; |
3 | | -using ServiceStack.Api.OpenApi; |
4 | 3 | using ServiceStack.Auth; |
5 | 4 | using ServiceStack.Configuration; |
6 | 5 | using ServiceStack.Data; |
|
16 | 15 |
|
17 | 16 | namespace Test; |
18 | 17 |
|
19 | | -public partial class AppHost : AppHostBase, IHostingStartup |
| 18 | +public class AppHost : AppHostBase, IHostingStartup |
20 | 19 | { |
21 | 20 | public void Configure(IWebHostBuilder builder) => builder |
22 | 21 | .ConfigureServices(services => { |
@@ -100,25 +99,22 @@ public override void Configure(Container container) |
100 | 99 | }); |
101 | 100 |
|
102 | 101 | Plugins.Add(new AuthFeature(() => new CustomUserSession(), |
103 | | - new IAuthProvider[] |
104 | | - { |
105 | | - new JwtAuthProvider(AppSettings) |
| 102 | + [ |
| 103 | + new JwtAuthProvider(AppSettings) |
106 | 104 | { |
107 | 105 | AllowInQueryString = true, |
108 | 106 | }, |
109 | 107 | new BasicAuthProvider(AppSettings), |
110 | 108 | new CredentialsAuthProvider(AppSettings), |
111 | 109 | new TwitterAuthProvider(AppSettings), //Sign-in with Twitter |
112 | 110 | 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 | + ]) { |
115 | 113 | // AllowGetAuthenticateRequests = req => true, |
116 | 114 | IncludeRegistrationService = true, |
117 | 115 | IncludeAssignRoleServices = true, |
118 | 116 | }); |
119 | 117 |
|
120 | | - Plugins.Add(new OpenApiFeature()); |
121 | | - // Plugins.Add(new ValidationFeature()); |
122 | 118 | Plugins.Add(new AutoQueryFeature |
123 | 119 | { |
124 | 120 | MaxLimit = 1000, |
|
0 commit comments