kratos
kratos copied to clipboard
It is not possible to delete SAML credential types through the API
Preflight checklist
- [x] I could not find a solution in the existing issues, docs, nor discussions.
- [x] I agree to follow this project's Code of Conduct.
- [x] I have read and am following this repository's Contribution Guidelines.
- [x] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
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.
Open to putting in a PR for this if you think it's relatively straightforward.
Reproducing the bug
- Add SAML credential
- 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