Skip to content

Commit 4b1c5cc

Browse files
authored
Update README.md
1 parent 54e5be1 commit 4b1c5cc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,15 @@ auth.process_slo(keep_local_session=keepLocalSession);
719719
#### Initiate SLO ####
720720

721721
In order to send a Logout Request to the IdP:
722+
```python
723+
from onelogin.saml2.auth import OneLogin_Saml2_Auth
724+
725+
req = prepare_request_for_toolkit(request)
726+
auth = OneLogin_Saml2_Auth(req) # Constructor of the SP, loads settings.json
727+
# and advanced_settings.json
728+
729+
auth.logout() # Method that builds and sends the LogoutRequest
730+
```
722731

723732
The Logout Request will be sent signed or unsigned based on the security info of the advanced_settings.json ('logoutRequestSigned').
724733

0 commit comments

Comments
 (0)