I have a proxy endpoint which is currently in use in production and doing the session validation by accepting the session as part of request.formparam.
Now I want to enhance this endpoint in order to validate the SAML assertion as well. From the SAML Assertion policy documentation, I came to know that the built-in support is for SOAP inbound request.
How can I design my existing endpoint to accept the SAML assertion like below and make it compatible with SAML validation policy?
POST /existingEndPoint HTTP/1.1
Content-Type: application/x-www-form-urlencoded
grant_type=SAML&saml_assertion=
Any sample APIs would be really helpful. Thanks!