The SAML IdP App Canarytoken can optionally validate incoming requests using a metadata file generated by the IdP. These endpoints enable/disable this validation, and allow for uploading the metadata file.
Save a new validation metadata file for a specific SAML IdP App token.
Required Parameters
auth_tokenstring
A valid auth token
canarytokenstring
A valid Canarytoken
Optional Parameters
metadatastring
An XML file containing IdP metadata. Request must be multipart/form-data encoded if parameter is present.
TIP
Sending through a request without metadata will delete the existing file.
Response
A JSON structure with result indicator.
Example
curl"https://EXAMPLE.canary.tools/api/v1/canarytokens/idp-app/metadata/save"\-X POST \-Fauth_token=EXAMPLE_AUTH_TOKEN \-Fcanarytoken=EXAMPLE_CANARYTOKEN \-Fmetadata=@/path/to/metadata.xml