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 @@ -647,6 +647,7 @@ If we don't want that processSLO to destroy the session, pass the keepLocalSessi
647647
648648#### Initiate SLO
649649In order to send a Logout Request to the IdP:
650+
650651``` java
651652Auth auth = new Auth (request, response);
652653
@@ -671,12 +672,14 @@ if (session.getAttribute("sessionIndex") != null) {
671672 sessionIndex = session. getAttribute(" sessionIndex" ). toString();
672673}
673674auth. logout(null , new LogoutRequestParams (sessionIndex, nameId, nameIdFormat));
674- ```java
675+ ```
676+
675677The Logout Request will be sent signed or unsigned based on the security settings 'onelogin.saml2.security.logoutrequest_signed'
676678
677679The IdP will return the Logout Response through the user's client to the Single Logout Service of the SP.
678680
679681We can set a 'RelayState' parameter containing a return url to the login function:
682+
680683``` java
681684String returnUrl = ' https://example.com' ;
682685auth. logout(relayState= returnUrl)
You can’t perform that action at this time.
0 commit comments