kratos icon indicating copy to clipboard operation
kratos copied to clipboard

It is not possible to delete SAML credential types through the API

Open Sajuno opened this issue 7 months ago • 0 comments

Preflight checklist

Ory Network Project

https://gracious-robinson-53sonjyxpn.projects.oryapis.com/

Describe the bug

When attempting to delete a credential of type SAML through the API, the following error message is returned:

{"error":{"code":400,"status":"Bad Request","request":"f1e10825-b0e8-98a0-94b6-f42a93d6cfad","reason":"Credentials type saml cannot be deleted.","message":"The request was malformed or contained invalid parameters"}}

This seems like a bug, but may have been intentional. It's not a huge issue for us, but it seems like strange behavior to not allow deletion for some known credentials.

Relevant Kratos code

Open to putting in a PR for this if you think it's relatively straightforward.

Reproducing the bug

  1. Add SAML credential
  2. Try to delete SAML credential through the DELETE /admin/identities/{id}/credentials/{type} endpoint

Relevant log output


Relevant configuration


Version

Ory Network

On which operating system are you observing this issue?

None

In which environment are you deploying?

Ory Network

Additional Context

No response

Sajuno avatar Jun 19 '25 15:06 Sajuno