Skip to content

Commit 5a58410

Browse files
authored
Merge pull request #381 from luozhouyang/master
Fixed README code block
2 parents 03afb44 + aaf1943 commit 5a58410

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ If we don't want that processSLO to destroy the session, pass the keepLocalSessi
647647

648648
#### Initiate SLO
649649
In order to send a Logout Request to the IdP:
650+
650651
```java
651652
Auth auth = new Auth(request, response);
652653

@@ -671,12 +672,14 @@ if (session.getAttribute("sessionIndex") != null) {
671672
sessionIndex = session.getAttribute("sessionIndex").toString();
672673
}
673674
auth.logout(null, new LogoutRequestParams(sessionIndex, nameId, nameIdFormat));
674-
```java
675+
```
676+
675677
The Logout Request will be sent signed or unsigned based on the security settings 'onelogin.saml2.security.logoutrequest_signed'
676678

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

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

0 commit comments

Comments
 (0)