[WIP] Live flow

This commit is contained in:
Paul Schneider 2019-02-08 10:22:52 +00:00
commit ae55d9b8d8
16 changed files with 3605 additions and 100 deletions

View file

@ -90,7 +90,8 @@ namespace Yavsc {
SiteSettings settingsOptions, ILogger logger) {
app.UseIdentity ();
app.UseWhen (context => context.Request.Path.StartsWithSegments ("/api"),
app.UseWhen (context => context.Request.Path.StartsWithSegments ("/api")
|| context.Request.Path.StartsWithSegments ("/live"),
branch => {
branch.UseJwtBearerAuthentication (
options => {
@ -104,7 +105,7 @@ namespace Yavsc {
);
});
app.UseWhen (context => !context.Request.Path.StartsWithSegments ("/api"),
app.UseWhen (context => !context.Request.Path.StartsWithSegments ("/api") && !context.Request.Path.StartsWithSegments ("/live"),
branch => {
// External authentication shared cookie:
branch.UseCookieAuthentication (options => {