Skip to main content

Get SSO Metadata (Organization)

Generate SAML/OIDC metadata for the organization to provide to SSO providers.

Quick Navigation
Outline

Endpoint

GET /api/v1/sso/metadata?provider_id=1&format=xml

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>

Query Parameters

ParameterTypeRequiredDescription
provider_idintegerYesSSO Provider ID
formatstringNoMetadata format: "xml" or "json" (default: "xml")

Response

Success (200)

{
"success": true,
"data": {
"metadata": "<?xml version=\"1.0\"?><EntityDescriptor>...</EntityDescriptor>",
"format": "xml",
"generated_at": "2024-01-01T12:00:00Z",
"message": "SSO metadata generated successfully"
},
"message": "SSO metadata generated successfully"
}

Features

  • Metadata generation for SAML/OIDC
  • XML and JSON format support
  • Certificate information included
  • Endpoint URLs (SSO, SLO, etc.)
  • Entity ID generation

Status

[WARNING] TODO: Not Implemented

This endpoint schema is defined but the implementation logic is not yet complete. Refer to /openapi.json for planned schema.