You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -496,6 +496,12 @@ The login method can recieve 2 more optional parameters:
496
496
* force_authn When true the AuthNReuqest will set the ForceAuthn='true'
497
497
* is_passive When true the AuthNReuqest will set the Ispassive='true'
498
498
499
+
If a match on the future SAMLResponse ID and the AuthNRequest ID to be sent is required, that AuthNRequest ID must to be extracted and stored for future validation, we can get that ID by
500
+
501
+
```python
502
+
auth.get_last_request_id()
503
+
```
504
+
499
505
#### The SP Endpoints ####
500
506
501
507
Related to the SP there are 3 important endpoints: The metadata view, the ACS view and the SLS view.
@@ -679,6 +685,12 @@ Also there are 2 optional parameters that can be set:
679
685
SAML Response with a NameId, then this NameId will be used.
680
686
* session_index. SessionIndex that identifies the session of the user.
681
687
688
+
If a match on the LogoutResponse ID and the LogoutRequest ID to be sent is required, that LogoutRequest ID must to be extracted and stored for future validation, we can get that ID by
689
+
690
+
```python
691
+
auth.get_last_request_id()
692
+
```
693
+
682
694
####Example of a view that initiates the SSO request and handles the response (is the acs target)####
683
695
684
696
We can code a unique file that initiates the SSO process, handle the response, get the attributes, initiate the slo and processes the logout response.
@@ -754,6 +766,7 @@ Main class of OneLogin Python Toolkit
754
766
****get_last_error_reason*** Returns the reason of the last error
755
767
****get_sso_url*** Gets the SSO url.
756
768
****get_slo_url*** Gets the SLO url.
769
+
****get_last_request_id*** The ID of the last Request SAML message generated.
757
770
****build_request_signature*** Builds the Signature of the SAML Request.
758
771
****build_response_signature*** Builds the Signature of the SAML Response.
0 commit comments