![]() |
Site Archive (Complete) | |||
|
ABOUT US |
CONTACT |
ADVERTISE |
SUBSCRIBE |
SOURCE CODE |
CURRENT PRINT ISSUE |
NEWSLETTERS
|
RESOURCES
|
BLOGS
|
PODCASTS
|
CAREERS
|
||||
July 17, 2008
SAML, JAAS, & Role-Based Access Control: Part 2Frank Teti
Invoking Web services by attaching SAML tokens to SOAP messages from within Java apps
Frank Teti is a Consulting Technical Manager within Oracle's SOA practice. He can be reached at frank.teti@oracle.com.
In Part 1 of this article, I discussed using a Java application as a Web service client and a creative way to secure that client using JAAS and SAML. Part 2 is a consequence of the same application, but I examine how to attach a SAML token to a SOAP message from within a Java application to invoke a Web service that is secured using WS-Security SAML policy file. Here I focus on the mechanism needed to invoke a secure Web service.
I don't discuss configuring SAML on an application server, generating Web service client stubs, annotating a Web service to use SAML as a WS-Security token or configuring a SAML provider/authority. Those types of things are implementation-specific, but important when creating an end-to-end SOA security architecture.
Application Design
Using an IDE or Ant script, it is relatively easy to design and create Web services (and to compile the bindings) that invoke the service from a remote client application. Adding security to the application, on the other hand, is a horse of a different color. However, if security is not seriously considered, then you should face the fact that you are building what I call a "Pet Store" application.
SAML Application Architecture and the Security Workflow
Figure 1, a high-level view of the deployment architecture for the target Java application, depicts the security model workflow. In the model, the Java application makes an HTTP(S) call to the SAML authority inside the firewall using a .NET service that integrates with AFDS (Active Directory Federation Service). The return parameter is a signed, SAML token that is generated based on the user's credentials (i.e., a Kerberos ticket). This token is injected into a SOAP header from within a Java application, which can then invoke a secure Web service that is protected using WS-Security.
[Click image to view at full size]
Figure 1: Java application acquires a SAML token to invoke a secure Web service requests.
Client-side Java Application Objects Roles and Responsibilities
Figure 2 illustrates the objects used for marshaling Web services, including injecting a SAML token into the SOAP message:
[Click image to view at full size]
Figure 2: UML View of Participating SOAP Message Handling Classes
|
|
||||||||||||||||||||||||||||
|
|