++
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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": "*",
|
||||
|
||||
Reference in New Issue
Block a user