Skip to content

Commit aaf1943

Browse files
committed
Fixed README
1 parent c50b749 commit aaf1943

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ If we don't want that processSLO to destroy the session, pass the keepLocalSessi
649649

650650
#### Initiate SLO
651651
In order to send a Logout Request to the IdP:
652+
652653
```java
653654
Auth auth = new Auth(request, response);
654655

@@ -673,12 +674,14 @@ if (session.getAttribute("sessionIndex") != null) {
673674
sessionIndex = session.getAttribute("sessionIndex").toString();
674675
}
675676
auth.logout(null, new LogoutRequestParams(sessionIndex, nameId, nameIdFormat));
676-
```java
677+
```
678+
677679
The Logout Request will be sent signed or unsigned based on the security settings 'onelogin.saml2.security.logoutrequest_signed'
678680

679681
The IdP will return the Logout Response through the user's client to the Single Logout Service of the SP.
680682

681683
We can set a 'RelayState' parameter containing a return url to the login function:
684+
682685
```java
683686
String returnUrl = 'https://example.com';
684687
auth.logout(relayState=returnUrl)

0 commit comments

Comments
 (0)