Create SAML application secret
Create a new signing certificate for the SAML application.
Path parameters
-
The unique identifier of the saml application.
Body Required
-
The lifetime of the certificate in years (minimum 1 year).
Minimum value is
1
.
POST
/api/saml-applications/{id}/secrets
curl \
--request POST https://[tenant_id].logto.app/api/saml-applications/{id}/secrets \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"lifeSpanInYears":42}'
Request examples
{
"lifeSpanInYears": 42
}
Response examples (201)
{
"id": "string",
"certificate": "string",
"createdAt": 42.0,
"expiresAt": 42.0,
"active": true,
"fingerprints": {
"sha256": {
"formatted": "string",
"unformatted": "string"
}
}
}