Hi,

I'm trying to understand how authorization (authZ) works in ServiceMix.

I have HTTP consumer that requires basic auth.  This works fine.

Next I want to see authZ working.

I added a role to groups.properties as following:

superuser=trudi

The user name trudi is specified in users-passwords.properties and I've had
that working with authN.

I've then replaced the existing authorization entry (in security.xml) with a
new one:
 service="{urn:/addsource.wsdl}:addsourceService" roles="superuser"

The problem with this is that I get a PatternSyntaxException because the
service name is translated into {{urn}/addsource.wsdl}:addsourceService.

Next I removed the braces from the service name in security.xml:
service="urn:/addsource.wsdl:addsourceService" roles="superuser"

But the service didn't match because the service name is transated into
{urn}/addsource.wsdl:addsourceService.

Next I changed all my namespaces to xxx and in security.xml changed the
security name to xxx:addsourceService and finally the service matched.
 
Any ideas why the authorizationEntry isn't coping with a urn namespace?

Thanks,
Trudi.

-- 
View this message in context: 
http://www.nabble.com/JAAS-AuthZ%3A-How-to-form-a-service-name-in-authorizationEntry--tp25530167p25530167.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to