# SAML IdP App Validation

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.

# Disable Validation

POST /api/v1/canarytokens/idp-app/validation/disable

Disable the validation for a specific SAML IdP App token.

Required Parameters

auth_token string
A valid auth token
canarytoken string
A valid Canarytoken

Response

A JSON structure with result indicator.

Example

    Response
    {
      "result": "success"
    }
    
    1
    2
    3

    # Enable Validation

    POST /api/v1/canarytokens/idp-app/validation/enable

    Enable the validation for a specific SAML IdP App token.

    Required Parameters

    auth_token string
    A valid auth token
    canarytoken string
    A valid Canarytoken

    Response

    A JSON structure with result indicator.

    Example

      Response
      {
        "result": "success"
      }
      
      1
      2
      3

      # Save Metadata File

      POST /api/v1/canarytokens/idp-app/metadata/save

      Save a new validation metadata file for a specific SAML IdP App token.

      Required Parameters

      auth_token string
      A valid auth token
      canarytoken string
      A valid Canarytoken

      Optional Parameters

      metadata string
      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

        Response
        {
          "metadata_entity_id": "<IdP entity ID>",
          "result": "success"
        }
        
        1
        2
        3
        4