[WIP] Live flow
This commit is contained in:
parent
c496581447
commit
ae55d9b8d8
16 changed files with 3605 additions and 100 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue