Feature Request
Support security access management for published REST services via GRANT/REVOKE.
Use Case
Published REST services have AllowedRoles and AuthenticationTypes fields that control who can access the API. Currently these can only be configured in Studio Pro.
Proposed Syntax
-- Grant access to a role
GRANT ACCESS ON PUBLISHED REST SERVICE Module.API TO Module.AdminRole;
-- Revoke access
REVOKE ACCESS ON PUBLISHED REST SERVICE Module.API FROM Module.AdminRole;
-- Show current access
SHOW ACCESS ON PUBLISHED REST SERVICE Module.API;
-- Set authentication type
ALTER PUBLISHED REST SERVICE Module.API SET Authentication = 'Basic';
Context
GRANT/REVOKE ACCESS is already supported for OData services. The BSON fields AllowedRoles and AuthenticationTypes on Rest$PublishedRestService are already known from the metamodel.
Discovered during testing of CREATE PUBLISHED REST SERVICE (PR rest branch).
Feature Request
Support security access management for published REST services via GRANT/REVOKE.
Use Case
Published REST services have
AllowedRolesandAuthenticationTypesfields that control who can access the API. Currently these can only be configured in Studio Pro.Proposed Syntax
Context
GRANT/REVOKE ACCESS is already supported for OData services. The BSON fields
AllowedRolesandAuthenticationTypesonRest$PublishedRestServiceare already known from the metamodel.Discovered during testing of CREATE PUBLISHED REST SERVICE (PR rest branch).