forked from IdentityServer/IdentityServer3.Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Startup.cs
33 lines (31 loc) · 999 Bytes
/
Startup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Microsoft.Owin.Security.Facebook;
using Microsoft.Owin.Security.Google;
using Microsoft.Owin.Security.Twitter;
using Owin;
using SampleApp.Config;
using IdentityServer3.Core.Configuration;
using IdentityServer3.Core.Logging;
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.Default;
using Serilog;
using IdentityServer3.Host.Config;
using SampleApp.Middleware;
namespace SampleApp
{
internal class Startup
{
public void Configuration(IAppBuilder app)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Trace()
.CreateLogger();
app.Map("/core",
coreApp =>
{
coreApp.Use<IdentityServerWithTenantSwitchingMiddleware>(coreApp.Properties);
// coreApp.UseIdentityServer(new IdentityServerWithTenantSwitchingMiddleware(null, null).GetOptions());
});
}
}
}