File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -649,6 +649,7 @@ If we don't want that processSLO to destroy the session, pass the keepLocalSessi
649649
650650#### Initiate SLO
651651In order to send a Logout Request to the IdP:
652+
652653``` java
653654Auth auth = new Auth (request, response);
654655
@@ -673,12 +674,14 @@ if (session.getAttribute("sessionIndex") != null) {
673674 sessionIndex = session. getAttribute(" sessionIndex" ). toString();
674675}
675676auth. logout(null , new LogoutRequestParams (sessionIndex, nameId, nameIdFormat));
676- ```java
677+ ```
678+
677679The Logout Request will be sent signed or unsigned based on the security settings 'onelogin.saml2.security.logoutrequest_signed'
678680
679681The IdP will return the Logout Response through the user's client to the Single Logout Service of the SP.
680682
681683We can set a 'RelayState' parameter containing a return url to the login function:
684+
682685``` java
683686String returnUrl = ' https://example.com' ;
684687auth. logout(relayState= returnUrl)
You can’t perform that action at this time.
0 commit comments