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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -523,6 +523,10 @@ The login method can recieve 3 more optional parameters:
523
523
* is_passive When true the AuthNReuqest will set the Ispassive='true'
524
524
* set_nameid_policy When true the AuthNReuqest will set a nameIdPolicy element.
525
525
526
+
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
527
+
528
+
auth.get_last_request_id()
529
+
526
530
#### The SP Endpoints ####
527
531
528
532
Related to the SP there are 3 important endpoints: The metadata view, the ACS view and the SLS view.
@@ -706,6 +710,10 @@ Also there are 2 optional parameters that can be set:
706
710
SAML Response with a NameId, then this NameId will be used.
707
711
* session_index. SessionIndex that identifies the session of the user.
708
712
713
+
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
714
+
715
+
auth.get_last_request_id()
716
+
709
717
####Example of a view that initiates the SSO request and handles the response (is the acs target)####
710
718
711
719
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.
@@ -781,6 +789,7 @@ Main class of OneLogin Python Toolkit
781
789
****get_last_error_reason*** Returns the reason of the last error
782
790
****get_sso_url*** Gets the SSO url.
783
791
****get_slo_url*** Gets the SLO url.
792
+
****get_last_request_id*** The ID of the last Request SAML message generated (AuthNRequest, LogoutRequest).
784
793
****build_request_signature*** Builds the Signature of the SAML Request.
785
794
****build_response_signature*** Builds the Signature of the SAML Response.
0 commit comments