App Plugins Reference

Summary

security-scopes-list


security-scopes-list

Summary

Security roles consist of security scopes, which can be selected via the multi-select autocomplete in the Roles form (located at the /admin/roles path in the Admin app):

Scopes Multi Autocomplete

This plugin enables adding custom security scopes to the multi-select autocomplete component in the Roles form.

Type

type SecurityScopesListPluginScope = {
title: any;
description: any;
scope: string;
};
type SecurityScopesListPlugin = Plugin & {
type: "security-scopes-list";
scopes:
| SecurityScopesListPluginScope[]
| (() => SecurityScopesListPluginScope[])
| (() => Promise<SecurityScopesListPluginScope[]>);
};

Example

{
type: "security-scopes-list",
name: "security-scopes-list-my-app",
scopes: [
{
scope: "myapp:animals:crud",
title: t`Animals CRUD`,
description: t`Allows the user to perform CRUD operations on animals.`
}
]
}
Last updated on by Adrian Smijulj