Hi,

I have been working out an example with JAAS as part of my upcoming book
"Open Source ESBs in action" which include lots of examples with ServiceMix
and Mule. So with a shameless plug you can look at
http://www.manning.com/rademakers for more details.

To use the default JAAS properties login configuration you don't have to do
a lot actually.
You can use the following configurating on a HTTP endpoint:

<http:endpoint service="esb:SimpleAuthentication"
       endpoint="authEndpoint"
       targetService="esb:testComponent"
       targetEndpoint="testEndpoint"
       role="consumer" 
       locationURI="http://localhost:8192/AuthenticationService/";
       authMethod="basic"
       defaultMep="http://www.w3.org/2004/08/wsdl/in-only"/>

So you only have to set the authMethod attribute to basic.
Now you can only call this AuthenticationService with the default user smx
and password smx to have the exchange succeed.

If you would like more details about the JAAS configuration just sent me an
email on [EMAIL PROTECTED],

Best regards,

Tijs



Lukasz L. wrote:
> 
>   
> Is basic authentication configured this way:
> 
>   <http:basicAuthentication>
>     <http:basicAuthCredentials username="testuser" password="testpass" />
>   </http:basicAuthentication>
> 
> equal to 
> 
> authMethod="basic" 
> plus specifying user's password in users-passwords.properties (and changes
> to goups.properties and security.xm) ?
> 
> 
> 
> gnodet wrote:
>> 
>> This is not really documented.  For the time being, you'll have to rely
>> on
>> the source code, but if you have any specific questions, feel free to
>> ask.
>> 
>> On Dec 19, 2007 3:47 PM, Lukasz L. <[EMAIL PROTECTED]> wrote:
>> 
>>>
>>> I'm joing the question,
>>> is there an example of doing this in dynamic configuration?
>>> was the current state of security in service mix?
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JAAS-Support-tp5719650s12049p14585753.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to