Skip to content

Commit

Permalink
Minor fix on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Jan 2, 2017
1 parent acb88e0 commit fa6d3ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ Main class of OneLogin Python Toolkit
* ***get_settings*** Returns the settings info.
* ***set_strict*** Set the strict mode active/disable.
* ***get_last_request_xml*** Returns the most recently-constructed/processed XML SAML request (AuthNRequest, LogoutRequest)
* ***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.
* ***get_last_response_xml*** Returns the most recently-constructed/processed XML SAML response (SAMLResponse, LogoutResponse). If the SAMLResponse had an encrypted assertion, decrypts it.

####OneLogin_Saml2_Auth - authn_request.py####

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

####OneLogin_Saml2_LogoutRequest - logout_request.py####

Expand Down
5 changes: 3 additions & 2 deletions src/onelogin/saml2/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,10 @@ def get_error(self):

def get_xml_document(self):
"""
If necessary, decrypt the XML response document, and return it.
Returns the SAML Response document (If contains an encrypted assertion, decrypts it)
:return: Decrypted XML response document
:rtype: string
:rtype: DOMDocument
"""
if self.encrypted:
return self.decrypted_document
Expand Down

0 comments on commit fa6d3ea

Please sign in to comment.