deleteVerificationCertificate
abstract suspend fun deleteVerificationCertificate(connectionId: String, certificateId: String): B2BDeleteSAMLVerificationCertificateResponse
Deletes a verification certificate from the specified SAML SSO connection. Calls the DELETE /sdk/v1/b2b/sso/saml/{connection_id}/verification_certificates/{certificate_id} endpoint. Requires an active session.
Kotlin:
StytchB2B.sso.saml.deleteVerificationCertificate(
connectionId = "saml-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
certificateId = "cert-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
)Content copied to clipboard
iOS:
let response = try await StytchB2B.sso.saml.deleteVerificationCertificate(
connectionId: "saml-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
certificateId: "cert-test-d5a3b680-e8a3-40c0-b815-ab79986666d0"
)Content copied to clipboard
React Native:
StytchB2B.sso.saml.deleteVerificationCertificate(
"saml-connection-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
"cert-test-d5a3b680-e8a3-40c0-b815-ab79986666d0",
)Content copied to clipboard
Return
B2BDeleteSAMLVerificationCertificateResponse confirming the deletion.
Parameters
connectionId
The ID of the SAML connection.
certificateId
The ID of the certificate to delete.
Throws
StytchError
if the certificate or connection is not found.
if the coroutine is cancelled.