Closed imatrycode closed 1 year ago
why are you mixing pysaml and python-saml?
xml = pysaml.validate_saml_response(saml_response)
encoded_xml = str(OneLogin_Saml2_Utils.decode_base64_and_inflate(saml_response))
ACS URL should receive a POST and not a Redirect, this is how 99% of IdPs will expect such endpoint.
Hi ,
Trying to use this toolkit. I am using authentik for my idp. I have a react app which uses fastapi as the backen. I am trying to implement saml however if I send a POST to the fastapi endpoint I cannot forward on the lookup data for the user after validating as react will not accept post.
I then switched to redirect response but this doesnt seem to be supported. I have opted to use redirect response on the ACS Url to redirect to my react app. My React app will then parse the saml response from the URL parameter and post it to my API.
The problem is the formatting / limitation of the redirect response it will not be parsed by your toolkit.
I can manually decode and inflate etc python side but I would like to use your library to validate the response.
Is there any way this toolkit can convert a redirect response recieved as post to a format which your toolkit can validate.
this is what I have
And I get this response