Hi, I am also new, but I think I already managed to make running what you just need. However, it has been quite a long procedure.
You need the Apache CXF Fediz for this. You can check it out from here: https://github.com/apache/cxf-fediz Then the best way is to go through almost all the blog entries by Oliver, starting from the beginning: http://owulff.blogspot.de/2011/10/configure-and-deploy-cxf-25-sts-part-i.html You need to make running everything one by one: first the STS, then the IDP, then a relying party (RP), and finally a web service / web service client. If you follow the blogs, finally you can make running the examples\wsclientWebapp\ example, that does what you need: - there is an IDP/STS running on a Tomcat - another Tomcat is running a web service that needs a SAML IssuedToken - another Tomcat is running a web application that calls the previous web service (first acquires a SAML token), and finally visualizes the token and the web service result in the browser. Please tell, if I can help you further. Cheers, Ivan 2013/6/6 patch_78 <[email protected]> > Hi, > > I am a newbie. I follow the example at > http://www.jroller.com/gmazza/entry/cxf_sts_tutorial. > > I have a web service that use policy sp:IssuedToken from a STS. > On my web app calling the web service, I define the STS class in the > cxf.xml > as > <jaxws:properties> > <entry key="ws-security.sts.client"> > <bean class="org.apache.cxf.ws.security.trust.STSClient"> > .... > </bean></entry></jaxws:properties> > > This is code on my web app is > DataStorageService service = new DataStorageService(); > DataStoragePortType port = service.getDataStoragePort(); > > How can I get security token got from the STS? > > patch > > > > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Get-Security-Token-tp5728824.html > Sent from the cxf-user mailing list archive at Nabble.com. >
