v26.4.26
v26.4.26
Login and registration flows issue a nonce for native social sign-in
Login and registration flows now return an id_token_nonce when a social sign-in provider that accepts ID tokens, such as Google
or Apple, is configured. Pass it unchanged as the nonce to the Google or Apple SDK in your native app, then submit the ID token to
the same flow. Apps that generate their own nonce keep working.
To accept an ID token only in the flow it was requested for, and only once, set feature_flags.oidc_server_issued_id_token_nonce
to true. Set it only after every released version of your app reads id_token_nonce from the flow. With the flag on, Ory Kratos
rejects ID tokens that carry another nonce or no nonce with the error ID oidc_id_token_nonce_rejected.
This release adds the used_nonces table and a nullable id_token_nonce column to the selfservice_login_flows and
selfservice_registration_flows tables. Run the SQL migrations before you start the new version. The kratos cleanup sql command
removes expired rows from the used_nonces table.
See ID token nonce.