stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Rajaratnam <rajkum...@wso2.com>
Subject [Discuss] Please add correct Authorization Action when defining new rest APIs
Date Tue, 17 Feb 2015 14:10:10 GMT
Hi Devs,

I found some of our rest APIs doesn't have the correct Authorization
Action. For example addDeploymentPolicy API.

    @POST
    @Path("/deploymentPolicies")
    @Produces("application/json")
    @Consumes("application/json")
    @AuthorizationAction("/permission/admin/manage/addCartridge")
    public Response addDeploymentPolicy(DeploymentPolicyBean
deploymentPolicyDefinitionBean)
            throws RestAPIException {

Authorization Action should be
"/permission/admin/manage/addDeploymentPolicy". We also need to add this to
the component.xml of the relevant component (AS/CC/SM) which exposes this
API.

Thanks.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Mime
View raw message