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
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -833,7 +833,7 @@ Main class of OneLogin Python Toolkit
833
833
****get_settings*** Returns the settings info.
834
834
****set_strict*** Set the strict mode active/disable.
835
835
****get_last_request_xml*** Returns the most recently-constructed/processed XML SAML request (AuthNRequest, LogoutRequest)
836
-
****get_last_response_xml*** Returns the most recently-constructed/processed XML SAML response (SAMLResponse, LogoutResponse). If the SAMLResponse was encrypted, by default tries to return the decrypted XML.
836
+
****get_last_response_xml*** Returns the most recently-constructed/processed XML SAML response (SAMLResponse, LogoutResponse). If the SAMLResponse had an encrypted assertion, decrypts it.
837
837
838
838
####OneLogin_Saml2_Auth - authn_request.py####
839
839
@@ -842,7 +842,7 @@ SAML 2 Authentication Request class
842
842
*`__init__` This class handles an AuthNRequest. It builds an AuthNRequest object.
843
843
****get_request*** Returns unsigned AuthnRequest.
844
844
****get_id*** Returns the AuthNRequest ID.
845
-
845
+
****get_xml*** Returns the XML that will be sent as part of the request.
846
846
847
847
####OneLogin_Saml2_Response - response.py####
848
848
@@ -861,6 +861,7 @@ SAML 2 Authentication Response class
861
861
****validate_num_assertions*** Verifies that the document only contains a single Assertion (encrypted or not)
862
862
****validate_timestamps*** Verifies that the document is valid according to Conditions Element
863
863
****get_error*** After execute a validation process, if fails this method returns the cause
864
+
****get_xml_document*** Returns the SAML Response document (If contains an encrypted assertion, decrypts it).
raiseException('The InResponseTo of the Logout Response: %s, does not match the ID of the Logout request sent by the SP: %s'% (in_response_to, request_id))
106
+
raiseOneLogin_Saml2_ValidationError(
107
+
'The InResponseTo of the Logout Response: %s, does not match the ID of the Logout request sent by the SP: %s'% (in_response_to, request_id),
108
+
OneLogin_Saml2_ValidationError.WRONG_INRESPONSETO
109
+
)
101
110
102
111
# Check issuer
103
112
issuer=self.get_issuer()
104
113
ifissuerisnotNoneandissuer!=idp_entity_id:
105
-
raiseException('Invalid issuer in the Logout Request')
0 commit comments