SSO and SLO
This document describes the steps that need to be done so that Service Providers can use the Single Sign On and Single Logout functionality.

Single Sign On

The SSO part can be used directly with the adapter by enabling the feature in the Signicat Identity Broker. If SSO is enabled, once a user is logged in to a broker, all Service Providers that will want to login to that Signicat Identity Broker will be logged in automatically without reaching the Identity Provider login page.
If SSO is enabled the response will contain a special parameter called SessionIndex.

Single Logout

If SSO is enabled, Service Providers can use the Single Logout functionality. The SLO functionality makes sure that when the user logs out from one Service Provider he will be logout from all other Service Providers that use the same Connectis Identity Broker.
The SLO flow has two main cases: initiating a SLO flow and receiving a SLO request from the Connectis Identity Broker.

Initiating a SLO Request

To initiate a SLO Request you must sent the CIB the SessionIndex parameter that was received during the SSO stage.
The Java Adapter API has support for this feature.
1
ConnectisAdapter.logout(request, response, spEntityId, nameId)
2
.withSessionIndex(sessionIndex)
3
.startLogout();
Copied!

Handling SLO Requests from CIB

If SSO is enabled and another Service Provider initiates a SLO request your Service Provider needs to be able to handle a logout request sent by the CIB.
To do this you will need to:
  • Create a class that will implement the LogoutHandler found in the delivered JAR. In the handleLogout method you will need to do a logout in your application.
1
package com.connectis.sp.client.saml.api.logout;
2
import com.connectis.sp.client.entities.response.Response;
3
4
public interface LogoutHandler {
5
LogoutResult handleLogout(Response logoutResponse,
6
ClientLogoutRequest logoutRequest);
7
}
Copied!
  • On the defined SLO endpoint send your new class to the Connectis Adapter
1
@RequestMapping(value = "/slo/**", method = RequestMethod.POST)
2
public void handleSlo(@Nonnull HttpServletRequest request,
3
@Nonnull HttpServletResponse response) {
4
ConnectisAdapter.handleLogout(
5
request,
6
response,
7
YOUR_LogoutHandler_IMPLEMENTATION
8
);
9
}
Copied!