This topic does not indicate a commitment to provide a Java implementation of the SP software. It only represents current thinking on the topic.

Java Service Provider

Current Landscape

Currently, individuals wishing to SAML-enable a Java web application with Shibboleth software must front-end their Servlet container with a supported web server (IIS, Apache, Netscape/iPlanet/Sun) and use the C++ SP implementation. In many cases this is fine because deployers often deploy their container behind such a web server for other reasons.

In some cases, for one reason or another, such a deployment environment is not ideal. Instead it would be nice to have a Java-native implementation of the SP. Such an implementation might integrate with an application via:

There are existing open source Java-based SAML SP implementations, however they are either no longer supported or are rather limited in what they support. These include:

In addition, with commercial applications, there is a question about whether deployers will be willing to integrate a Java SP given that doing so would most likely void their support contracts.

Shibboleth Java SP

So, given the discussion above, what might a Shibboleth Java SP look like? The following rough architecture tries to strike a balance between deployment complexity and feature set.

It seems clear that picking a single integration option as the one true option is probably not a good decision. So, instead we would probably try to create something that was higher level than the OpenSAML. Currently the idea would be to have two gross components:

In both the security policies currently performed by the IdP and SP would be included (i.e. SAML condition validation, signature checking, etc.). In terms of protocols we'd implement the Shib and SAML 2 SSO and SAML 1 and 2 Attribute query profiles. We'd leave out artifact resolution because it seems like it's just not used that often and would either end up adding a whole lot of complexity or prohibit clustering.

Such a library we believe would go 80-90% of the way. It would not address discovery and session initiation because those end up being very tightly coupled to the underlying technology (e.g. the way you'd return a discovery response to a Servlet/Filter setup is quite different than returning it to a Spring Security setup).

To both demonstrate the final steps necessary in an SP implementation and to cover what we feel is probably the most case right now, we would also produce an SP implementation that targeted the Servlet 2.x standard (JASPI and Servlet 3 just aren't widely enough available currently). This would create HTTP sessions (expiration would still be managed by the container), make attributes available via the session, and optionally request, attributes. Discovery would be done using the new SP-local discovery service. Session initiation would be implemented in the authentication Servlet.