feat(36-01): add TokenScope.Group and AdminAPITokenScope plugin_id/group metadata
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user