feat(36-01): add TokenScope.Group and AdminAPITokenScope plugin_id/group metadata

This commit is contained in:
Jakub Zych
2026-11-24 19:28:59 +01:00
parent 7644786d62
commit cb259ba910
4 changed files with 92 additions and 6 deletions

View File

@@ -862,11 +862,13 @@ type HasPermissions interface {
}
// TokenScope is one personal API token scope a plugin registers at boot.
// Label and Description are phrase keys (containing "::") or literal text.
// Label, Description and the optional Group are phrase keys (containing "::")
// or literal text; an empty Group falls back to plugin metadata in cabana.
type TokenScope struct {
Name string
Label string
Description string
Group string
Permissions []string
Methods []string
}