Skip to main content

Credentials

Each identity has one or more credentials associated with it:

credentials:
password:
id: password
identifiers:
- [email protected]
- [email protected]
config:
hashed_password: ...
oidc:
id: oidc
identifiers:
- google:j8kf7a3...
- facebook:83475891...
config:
- provider: google
identifier: j8kf7a3
- provider: facebook
identifier: 83475891

Ory Identities supports several credential types:

  • password: The most common identifier (username, email, ...) + password credential.
  • oidc: The "Log in with Google/Facebook/GitHub/..." credential.
  • Other credentials - support other credential types (X509 Certificates, Biometrics, ...) that will be added at a later stage.

Each credential - regardless of its type - has one or more identifiers attached to it. Each identifier is universally unique. Assuming we had one identity with credentials

credentials:
password:
id: password
identifiers:
- [email protected]

and tried to create (or update) another identity with the same identifier ([email protected]), the system would reject the request with a 409 Conflict state.

While credentials must be unique per type, there can be duplicates amongst multiple types:

# This is ok:
credentials:
password:
id: password
identifiers:
- [email protected]
oidc:
id: oidc
identifiers:
- [email protected]

The same would apply if those were two separate identities:

# Identity 1
credentials:
password:
id: password
identifiers:
- [email protected]
---
# Identity 2
credentials:
oidc:
id: oidc
identifiers:
- [email protected]