SAML application callback

GET /api/saml-applications/{id}/callback

Handle the OIDC callback for SAML application and generate SAML response.

Path parameters

  • id string Required

    The unique identifier of the saml application.

Query parameters

  • code string

    The authorization code from OIDC callback.

  • state string

    The state parameter from OIDC callback.

  • redirectUri string

    The redirect URI for the callback.

  • error string
  • error_description string

Responses

  • 200 application/json

    Returns an HTML form that automatically submits the SAML response.

  • 400

    Invalid request or OIDC error.

  • 404

    The SAML application was not found.

GET /api/saml-applications/{id}/callback
curl \
 --request GET 'https://[tenant_id].logto.app/api/saml-applications/{id}/callback' \
 --header "Authorization: Bearer $ACCESS_TOKEN"