Hi Ruchith,
Thanks for your answer. In that sample they are using some policy files [1] ,
I don't have a policy file, I am not sure whether I need one.
I need to pass the application user name and password to the Authentication
service in able to get back the token. I couldn't understand how the STS
service is implemented at the server side in this example, is this something
provided by the framework?
I have Web Service that I need to call to obtain the token. Can this be
something custom and require some custom handling? I have .Net at the server
side..
I am new to the area so I am sorry if I am asking some dumb questions.
1- stsClient.setRstTemplate(getRSTTemplate());
String action = TrustUtil.getActionValue(RahasConstants.VERSION_05_02,
RahasConstants.RST_ACTION_ISSUE);
stsClient.setAction(action);
Token responseToken =
stsClient.requestSecurityToken(loadPolicy("sample05/policy.xml"),
"http://localhost:8080/axis2/services/STS",
loadPolicy("sample05/sts_policy.xml"), null);
System.out.println("\n############################# Requested Token
###################################\n");
System.out.println(responseToken.getToken().toString());
TokenStorage store = TrustUtil.getTokenStore(ctx);
store.add(responseToken);
-----Original Message-----
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 14, 2008 11:00 AM
To: [email protected]
Subject: Re: axis2 rampart and ws-trust
Please have a look at "samples/policy/sample05" in the rampart
standard binary distribution.
You can subscribe and post Rampart/WS-Trust related issues to
[EMAIL PROTECTED]
Thanks,
Ruchith
On Fri, Sep 12, 2008 at 11:43 AM, Soyer, Muhammed A. <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Does anybody know any links for some documentation and sample about the
> usage of ws-trust with axis2?
>
> I did some googling and couldn't find anything that may help me..
>
>
>
> Thanks a lot
>
>
--
http://blog.ruchith.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]