pysaml2 icon indicating copy to clipboard operation
pysaml2 copied to clipboard

processing ArtifactResponse and containing Response with artifact binding

Open flupzor opened this issue 5 years ago • 0 comments

I have a question on how to process an artifact response and the containing response using PySAML2. I am processing the SAMLArt now as follows.

        artifact_id = saml_art
        raw_response = client.artifact2message(artifact_id, "idpsso")
        try:
            response = client.parse_artifact_resolve_response(
                raw_response.content
            )
        except StatusError:
            return

This returns a Response object. However, it does not seem to be processing the Response contained in the ArtifactResponse properly. It does not go through the verify() method at all for Response.

Among other things it does not

  • Verify the StatusCode for the Response element.
  • It does not process the AttributeStatements.

My question is, how would I properly process the Response element which is contained ArtifactResponse? I couldn't find a description on how to use this specific part of the API, other than test_64_artifact.py. So I tried a bunch of things until I got it working, but now I'm stuck.

Code Version

PySAML2 5.0.0

flupzor avatar Apr 29 '20 11:04 flupzor