gray-machine-46287
02/06/2025, 3:15 PMbrief-egg-61061
02/06/2025, 3:15 PMbrief-egg-61061
02/06/2025, 3:16 PMcredentials
section that represents all credentials associated with the identity. For password-based authentication, there is typically only one password field: yaml credentials: password: id: password identifiers: - [[email protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>) - [[email protected]](<https://www.ory.sh/cdn-cgi/l/email-protection>) config: hashed_password: ...
The system is designed to have a single password for each identity, which is used for authentication. There isn't a provision for storing multiple passwords or a separate "admin-set" password within the same identity. If you need to set or update a password through the admin API, you would be changing the existing password for that identity, not adding a second one. The [API documentation for updating identities](https://www.ory.sh/docs/reference/api) shows that you can update the password credentials, but it doesn't provide a way to add multiple password fields. If you have a specific use case that requires maintaining two different passwords, you might need to consider alternative approaches, such as using custom fields in the identity schema or leveraging the metadata fields. However, these would not function as actual authentication credentials in the same way as the primary password.