network
network copied to clipboard
Setting the identity schema using the CLI is not possible
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.
- [ ] This issue affects my Ory Cloud project.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
Describe the bug
I was not able to set the identity schema using the Ory CLI. It just doesn't work for some reason.
Reproducing the bug
- Create a project
- Create two identity schemas in the console
- Try to set one of the schemas using the Ory CLI
Relevant log output
No response
Relevant configuration
No response
Version
master
On which operating system are you observing this issue?
No response
In which environment are you deploying?
No response
Additional Context
No response
Thats weird, this worked for me
- Create project
- Create new identity schema with simple modification
- Export config with the CLI and note down the id of the new schema
-
ory patch project 34c4asdasd-c7f6-424e-ac69-eaec05b1a260 --replace '/services/identity/config/identity/default_schema_id="1590889099b35292ed1dc97f6adfe146f3b99e1510a99992632a8876ba112ce862c12fd3asdds3b8cf44c4853381128e02209ea4f4502ebe8f6ecb97179f854496"' - Identity schema set successfully
Hm, thank you!
Maybe the problem is trying to set a schema from a different project? This works in the UI but maybe not the API
Maybe the problem is trying to set a schema from a different project? This works in the UI but maybe not the API
I have no idea about the underlying code but what I speculate happens is:
- User creates modified identity schema
- for some reason it doesn't get saved in the "normal" identity config but somewhere else
- its settable in the UI but doesn't show up in identity config
- in some edge cases its even not possible to set in the UI as well (Sean Katz case)
I think this seems to be the case if you have a lot of identity schemas 5+.