fix: Authorization Policy 'AdminCookie' 등록 (Admin 페이지 500 오류 해결)
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 14s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production (Local) / Build & Deploy to Production (push) Failing after 1m25s
Build & Package / build (push) Failing after 1m31s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 14s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production (Local) / Build & Deploy to Production (push) Failing after 1m25s
Build & Package / build (push) Failing after 1m31s
This commit is contained in:
@@ -40,7 +40,13 @@ try
|
||||
opts.ExpireTimeSpan = TimeSpan.FromHours(12);
|
||||
});
|
||||
|
||||
builder.Services.AddAuthorization();
|
||||
builder.Services.AddAuthorization(options =>
|
||||
{
|
||||
options.AddPolicy(AdminAuthDefaults.Scheme, policy =>
|
||||
{
|
||||
policy.RequireAuthenticatedUser();
|
||||
});
|
||||
});
|
||||
builder.Services.AddAntiforgery();
|
||||
|
||||
// Razor Pages with authorization conventions
|
||||
|
||||
Reference in New Issue
Block a user