Hello,

I'm trying to use the WSAuthorizationManager with WSO2 G-Reg, in conjunction
with WSRegistryServiceClient, so that I can set the permissions on a
resource I created using code such as:

regUserHome = registry.put("/home/" + userName, homeCollection);
authManager = new WSAuthorizationManager(wso2Url, authCookie,
configContext);
authManager.denyRole(everyone, regUserHome, permission);
authManager.authorizeRole(userName, regUserHome, permission);

This is not working - I am getting the following exception in the G-Reg log
(G-Reg is configured with <Offset>5</Offset> in carbon.xml):

org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR)
https://localhost:9448/services/RemoteAuthorizationManagerService

If G-Reg does not support the RemoteAuthorizationManagerService, then what
should I use in its place if I want to adjust the permissions on a resource? 
Also, what is the appropriate code to use to retrieve the name of the
"everyone" role (instead of hard-coding it to "everyone").

Thank you for your help.

Regards,
Boris




--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/G-Reg-WSAuthorizationManager-tp76032.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to