fix: use stable engine authentik groups
This commit is contained in:
@@ -40,14 +40,7 @@ const taskManagerInviteRoles = new Set(["guest", "member", "admin"]);
|
||||
const engineWorkflowAccessRequestStatuses = new Set(["new", "approved", "rejected", "cancelled"]);
|
||||
const engineWorkflowRoles = new Set(["viewer", "editor", "admin"]);
|
||||
const publicPoolClientId = "client_public_pool";
|
||||
const engineAuthentikGroups = [
|
||||
"nodedc:engine:admin",
|
||||
"nodedc:engine:editor",
|
||||
"nodedc:engine:viewer",
|
||||
"nodedc_admin",
|
||||
"nodedc_editor",
|
||||
"nodedc_viewer",
|
||||
];
|
||||
const engineAuthentikGroups = ["nodedc_admin", "nodedc_editor", "nodedc_viewer"];
|
||||
const publicPoolClient = {
|
||||
id: publicPoolClientId,
|
||||
type: "person",
|
||||
@@ -2107,7 +2100,10 @@ function normalizeService(service) {
|
||||
? "https://engine.nodedc.ru/logout"
|
||||
: service.logoutUrl,
|
||||
authentikApplicationSlug: service.authentikApplicationSlug === "nodedc" ? "nodedc-engine" : service.authentikApplicationSlug,
|
||||
authentikGroupName: service.authentikGroupName === "service-nodedc" ? "nodedc:engine:viewer" : service.authentikGroupName,
|
||||
authentikGroupName:
|
||||
service.authentikGroupName === "service-nodedc" || service.authentikGroupName === "nodedc:engine:viewer"
|
||||
? "nodedc_viewer"
|
||||
: service.authentikGroupName,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user