Appgate (SAML POST)
Appgate accepts SAMLResponse via POST. This guide applies when using Casdoor as the SAML IdP for Appgate (and for other SPs that support POST).
Casdoor configuration
Create or edit the application in Casdoor and set:
| Setting | Value |
|---|---|
| Redirect URL | Unique identifier (Audience/Entity ID in the SP). Use the value from the table below. |
| URL de Resposta | ACS URL that receives and verifies the SAML response. |
| Use case | Redirect URL | SAML Reply URL |
|---|---|---|
| Administrator auth | AppGate | https://mycontroller.your-site-url.com/admin/saml |
| User auth | AppGate Client | https://redirectserver.your-site-url.com/saml |

Download the SAML metadata (copy the metadata URL and open it in a browser to save the XML).

Adicionar SAML IdP no Appgate
- In AppGate SDP Console → System → Identity Providers, create a new provider and choose SAML.
- Set Name (e.g. "Casdoor SAML Admin"). For Single Sign-on URL, Issuer, and Public Certificate, upload the metadata file so they are filled automatically.
- Set Audience to the Redirect URL you configured in Casdoor.
Upload the metadata via Choose a file to autocomplete Single Sign-On URL, Issuer, and Public Certificate.