Skip to content

Fetch IdP metadata XML

POST
/api/v1/auth-providers/fetch-metadata
curl --request POST \
--url https://osctrl.net/api/v1/auth-providers/fetch-metadata \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{}'

Fetches the SAML IdP metadata document from the given URL and returns the XML.

{ \

Media typeapplication/json
object
Examplegenerated
{}

{ "xml": "<EntityDescriptor …>" }

Media typeapplication/json
object
Examplegenerated
{}

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Fetch failed

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}