v26.4.22
v26.4.22
Require a unique ID for every sign-in provider
A sign-in names its provider by ID. Ory Kratos Identities now rejects a sign-in with a provider ID that more than one provider uses. Before, it used the first provider with that ID and ignored the others. OpenID Connect providers and, in the Ory Enterprise License (OEL), SAML providers share one set of IDs.
At startup, Ory Kratos Identities logs a warning that lists every provider ID that more than one provider uses.
Breaking changes
- If two providers in
selfservice.methods.oidc.config.providersuse the sameid, every sign-in, registration, and account link with that ID fails with aninvalid_configurationerror. In OEL, the same applies toselfservice.methods.saml.config.providers, and to an OpenID Connect and a SAML provider that share anid. Give each provider its own ID, or remove the providers you don't use. Only the first provider with an ID was used before, so removing the later ones keeps today's behavior.
Limits on WebAuthn and passkey credentials
Ory Kratos Identities now limits the WebAuthn and passkey credentials an identity can hold:
- An identity can hold at most 32 passkeys and 32 WebAuthn credentials. Adding another one in the settings flow fails with a validation error until the user removes one.
- The name a user gives a security key (
webauthn_register_displayname) can be at most 128 characters long. - Registration and settings flows reject a WebAuthn or passkey credential whose stored data is larger than 16 KiB.
Identities that already hold more than 32 credentials keep working. Their users can still sign in and remove credentials.