Skip to content

Commit fa6d3ea

Browse files
committed
Minor fix on docs
1 parent acb88e0 commit fa6d3ea

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ Main class of OneLogin Python Toolkit
795795
* ***get_settings*** Returns the settings info.
796796
* ***set_strict*** Set the strict mode active/disable.
797797
* ***get_last_request_xml*** Returns the most recently-constructed/processed XML SAML request (AuthNRequest, LogoutRequest)
798-
* ***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.
798+
* ***get_last_response_xml*** Returns the most recently-constructed/processed XML SAML response (SAMLResponse, LogoutResponse). If the SAMLResponse had an encrypted assertion, decrypts it.
799799

800800
####OneLogin_Saml2_Auth - authn_request.py####
801801

@@ -823,7 +823,7 @@ SAML 2 Authentication Response class
823823
* ***validate_num_assertions*** Verifies that the document only contains a single Assertion (encrypted or not)
824824
* ***validate_timestamps*** Verifies that the document is valid according to Conditions Element
825825
* ***get_error*** After execute a validation process, if fails this method returns the cause
826-
* ***get_xml_document*** If necessary, decrypt the XML response document, and return it.
826+
* ***get_xml_document*** Returns the SAML Response document (If contains an encrypted assertion, decrypts it).
827827

828828
####OneLogin_Saml2_LogoutRequest - logout_request.py####
829829

src/onelogin/saml2/response.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,10 @@ def get_error(self):
757757

758758
def get_xml_document(self):
759759
"""
760-
If necessary, decrypt the XML response document, and return it.
760+
Returns the SAML Response document (If contains an encrypted assertion, decrypts it)
761+
761762
:return: Decrypted XML response document
762-
:rtype: string
763+
:rtype: DOMDocument
763764
"""
764765
if self.encrypted:
765766
return self.decrypted_document

0 commit comments

Comments
 (0)