SAML application callback

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
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"