The attached servlets implement a simple HTTP interface
to the JOSSO gateway. The purpose of this interface is
to provide a convenient way of testing JOSSO, as well
as an alternative to the SOAP interface for JOSSO
clients. The interface is not complete; it was
sufficient for my needs.
As an example of use, add the following to the main
josso web application's web.xml:
----------------
<servlet>
<servlet-name>SSOIdentityManager</servlet-name>
<display-name>SSOIdentityManager</display-name>
<description></description>
<servlet-class>org.josso.gateway.identity.service.http.SSOIdentityManagerHttpBindingImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SSOIdentityManager</servlet-name>
<url-pattern>/SSOIdentityManager</url-pattern>
</servlet-mapping>
-----------------
To test the interface, login to the josso gateway to
get a session ID. Then, point your browser to:
... substituting the session ID assigned by JOSSO for
your login. You should get a response showing your
username and any associated attributes.
SSOIdentityManager HTTP interface servlet
SSOSessionManager HTTP interface servlet
Logged In: YES
user_id=486362
Thanks Stephen for your contribution. We'll provide you with
some feedback as soon as we get the chance to have a look at
your code.