feat: add Ory Console guide for password migration hook#2500
feat: add Ory Console guide for password migration hook#2500MikeSagnelli merged 5 commits intomasterfrom
Conversation
| } | ||
| ``` | ||
|
|
||
| To verify that an identity is pending migration in the Ory Console: |
There was a problem hiding this comment.
Is there a way to verify an identity is pending migration from the CLI?
There was a problem hiding this comment.
Not directly through the CLI. The ory get identity command has an --include-credentials flag, but its documentation states it only supports oidc.
However, you can verify it through the Admin API by calling:
GET /admin/identities/{id}?include_credential=password
If credentials.password.config.use_password_migration_hook is true and hashed_password is empty, the identity is pending migration.
I can add this as an API example alongside the Console guide if that would be helpful. However, IMO it is not very straightfoward.
There was a problem hiding this comment.
Is this feature only for Ory Network? If not (or we plan to add to OEL/OSS later), we probably need the verify via Admin API too.
There was a problem hiding this comment.
This is not a new feature in Ory Network, this is a new feature in Console. We were already able to import identities using the password migration webhook. The only thing that was recently worked on was adding that capability to the Console. Therefore, I believe this is already in OEL/OSS.
In order to check via API if an identity has been successfully migrated, when getting the identity instead of seeing:
{
"schema_id": "preset://email",
"traits": {
"email": "pw-migration@example.org"
},
"credentials": {
"password": {
"config": {
"hashed_password": "",
"use_password_migration_hook": true
}
}
}
}
{
"schema_id": "preset://email",
"traits": {
"email": "pw-migration@example.org"
},
"credentials": {
"password": {
"config": {
"hashed_password": "<NON_EMPTY_VALUE>",
}
}
}
}
Let me know if it makes sense to add this.
unatasha8
left a comment
There was a problem hiding this comment.
See inline suggestions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
00b5f55 to
b79653b
Compare
Summary
The existing Ory CLI instructions are preserved in a second tab.
Related
🤖 Generated with Claude Code