This commit is contained in:
2020-03-24 01:15:37 +01:00
parent ecfec571b7
commit f4cf0f6447
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -54,6 +54,7 @@ namespace unjo.Web
// add cookie-based authentication
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(opts => {
// override redirect to login page (handled by vue frontend) and return a 401 instead
opts.Events.OnRedirectToLogin = (context) =>
{
context.Response.StatusCode = 401;
+1 -2
View File
@@ -10,8 +10,7 @@
"dayjs": "^1.8.23",
"lodash": "*",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuex": "^3.1.3"
"vue-router": "^3.1.6"
},
"devDependencies": {
"@babel/core": "*",