it was staring me right in the face
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
This commit is contained in:
@@ -48,9 +48,9 @@ builder.Services.AddAuthentication(options => {
|
||||
|
||||
builder.Services.AddAuthorization(options => {
|
||||
|
||||
options.AddPolicy("SensitiveDataRead", policy =>
|
||||
options.AddPolicy(Permission.SensitiveData_Read, policy =>
|
||||
policy.RequireClaim("permission", Permission.SensitiveData_Read));
|
||||
options.AddPolicy("SensitiveDataModify", policy =>
|
||||
options.AddPolicy(Permission.SensitiveData_Modify, policy =>
|
||||
policy.RequireClaim("permission", Permission.SensitiveData_Modify));
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user