feat: add licensing API token scope #698
Reference in New Issue
Block a user
Delete Branch "feature/api-token-scopes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
read:licensing/write:licensingAPI token scope categoryallscope continue to work (backward compatible)Closes #697
Changes
models/auth/access_token_scope.go: NewAccessTokenScopeCategoryLicensingenum, bit constants, string constants, and all scope mapsmodels/auth/access_token_scope_test.go: Updated test expectations for new scoperouters/api/v1/api.go: Wrapped/licensinggroup withtokenRequiresScopes(), added public-only rejectionTest plan
read:licensingcan GET licensing endpointswrite:licensingcan POST/PATCH/DELETE licensing endpointsallscope can access licensing endpoints