You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Glen Mazza <gm...@talend.com> on 2011/06/18 16:00:05 UTC

Configuring basic auth username & password within STSClient

Hello, I'm looking at the Picketlink STS right now.  By default, to be 
able to access the STS endpoint it is necessary to provide a basic auth 
username and password (this is before either UsernameToken or X509 
authentication is done in order to get a token).  I can easily remove 
that requirement from the STS side by editing its web.xml, but was 
wondering whether CXF's STSClient can be configured with basic auth 
info.  The documentation (http://cxf.apache.org/docs/ws-trust.html) 
doesn't suggest such an option is available.

Thanks,
Glen

-- 
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza




Re: Configuring basic auth username & password within STSClient

Posted by Glen Mazza <gm...@talend.com>.
Works like a charm, thanks.

Glen

On 06/20/2011 06:51 AM, Colm O hEigeartaigh wrote:
> Hi Glen,
>
> You can't configure the STSClient directly to send a Basic Auth
> username/password. Why not just use spring as per any web service
> client? e.g:
>
> <http:conduit name="{http://sts.com/stsservice}stsport.http-conduit";>
>      <http:authorization>
>       <sec:UserName>X</sec:UserName>
>       <sec:Password>Y</sec:Password>
>      </http:authorization>
>    </http:conduit>
>
> Colm.
>
>
> On Sat, Jun 18, 2011 at 3:00 PM, Glen Mazza<gm...@talend.com>  wrote:
>> Hello, I'm looking at the Picketlink STS right now.  By default, to be able
>> to access the STS endpoint it is necessary to provide a basic auth username
>> and password (this is before either UsernameToken or X509 authentication is
>> done in order to get a token).  I can easily remove that requirement from
>> the STS side by editing its web.xml, but was wondering whether CXF's
>> STSClient can be configured with basic auth info.  The documentation
>> (http://cxf.apache.org/docs/ws-trust.html) doesn't suggest such an option is
>> available.
>>
>> Thanks,
>> Glen
>>
>> --
>> Glen Mazza
>> Application Integration Division
>> Talend (http://www.talend.com/ai)
>> blog: http://www.jroller.com/gmazza
>>
>>
>>
>>
>
>


-- 
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza



Re: Configuring basic auth username & password within STSClient

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Glen,

You can't configure the STSClient directly to send a Basic Auth
username/password. Why not just use spring as per any web service
client? e.g:

<http:conduit name="{http://sts.com/stsservice}stsport.http-conduit";>
    <http:authorization>
     <sec:UserName>X</sec:UserName>
     <sec:Password>Y</sec:Password>
    </http:authorization>
  </http:conduit>

Colm.


On Sat, Jun 18, 2011 at 3:00 PM, Glen Mazza <gm...@talend.com> wrote:
> Hello, I'm looking at the Picketlink STS right now.  By default, to be able
> to access the STS endpoint it is necessary to provide a basic auth username
> and password (this is before either UsernameToken or X509 authentication is
> done in order to get a token).  I can easily remove that requirement from
> the STS side by editing its web.xml, but was wondering whether CXF's
> STSClient can be configured with basic auth info.  The documentation
> (http://cxf.apache.org/docs/ws-trust.html) doesn't suggest such an option is
> available.
>
> Thanks,
> Glen
>
> --
> Glen Mazza
> Application Integration Division
> Talend (http://www.talend.com/ai)
> blog: http://www.jroller.com/gmazza
>
>
>
>



-- 
Colm O hEigeartaigh

http://coheigea.blogspot.com/
Talend - http://www.talend.com