kratos icon indicating copy to clipboard operation
kratos copied to clipboard

Allow removal of last credential

Open Sajuno opened this issue 7 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

We're running into an issue when removing credentials from identities, in that it's impossible to remove the last one. It seems this is intended as a way to make sure that the identity remains able to authenticate somehow, but for us this can be problematic as identities can be meaningful to our product without users attached.

Describe your ideal solution

I think a configuration option on a project to allow/disallow this would be great, as I can imagine that in many cases it's a nice protection.

Workarounds or alternatives

  • Using PUT to overwrite the entire identity, but this requires introspecting the current identity before attempting the removal. It's also racy when other updates happen concurrently.
  • Giving every identity a bogus credential by default that is never shown to our customers.

Version

Ory Network

Additional Context

No response

Sajuno avatar Jun 20 '25 07:06 Sajuno