Adding a flag to the CreateIdentity call or maybe ...
# ory-selfhosting
p
Adding a flag to the CreateIdentity call or maybe the
IdentityWithCredentialsPassword
struct that toggles password strength enforcement would be very useful.
m
Hello @plain-lunch-50969 I guess the reasoning is that users would use the public API and when you use the admin API you usually dont want these restrictions. Can you tell us more about the use case - are you using CreateIdentity to create a lot of identities? But yea I agree having a flag there would be useful for your particular use case - tbh this is the first time I come across it though,.
p
Hello @magnificent-energy-493. The use case is that we have a command line utility that we use to create some accounts. This utility calls into a k8s-hosted container which handles the identity creation. This container and kratos are in the same k8s namespace. I was using CreateIdentity as that seemed like the API endpoint to use. I've since switched to using a Native registration flow - which does implement the password strength enforcement. Is this the correct away to handle this? I'm not sure there is another way to handle non-browser flows... Did the semantics of CreateIdentity change for v1? We recently, finally, updated to v1 from v0.11. Thanks,