Menu

#32 JOSSO Plain 'ole HTTP interface

open
nobody
None
5
2006-09-21
2006-09-21
No

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:

http://josso-server:8080/josso/SSOIdentityManager?method=findUserInSession&sessionId=605478A6AE1EA77B8BF06D804D7B51D7

... substituting the session ID assigned by JOSSO for
your login. You should get a response showing your
username and any associated attributes.

Discussion

  • Stephen Schaub

    Stephen Schaub - 2006-09-21

    SSOIdentityManager HTTP interface servlet

     
  • Stephen Schaub

    Stephen Schaub - 2006-09-21

    SSOSessionManager HTTP interface servlet

     
  • Gianluca Brigandi

    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.