Skip to content

Socrate v1.16.2

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 07:15
fcb37ee

Patch release on the v1.x line for step-up sign-in. max_age on /oauth/authorize can be
met, 0 included (it always ended in login_required before), and a new control, off by
default, makes acr_values=mfa require a second-factor sign-in (ACR_VALUES_MODE). No
migration, no change of default, no change to discovery or claims.

Upgrade notes

  • Client-facing changes: a request with max_age that ended in login_required after a fresh
    sign-in on the login page now gets a code; under ACR_VALUES_MODE=enforce only, the new error
    unmet_authentication_requirements.
  • acr_values: run ACR_VALUES_MODE=observe and look for acr_values_unmet events before
    enforce; a user without MFA turned on cannot meet acr_values=mfa. Clients must still check
    acr/amr in the token (bff.StepUp.Satisfied, backendkit v1.29.0).

Fixed

  • max_age on /oauth/authorize can be met, 0 included. The check ran when the user clicked
    Allow on the consent page, measuring the time since the sign-in: max_age=0 therefore always
    ended with login_required (re-authentication required), and a small max_age did whenever
    the consent page stayed open a few seconds, so a client could not ask for a step-up sign-in
    with it. A sign-in on the login page of the same request is the active re-authentication OIDC
    Core §3.1.2.1 asks for, and now meets any max_age; an earlier sign-in is checked as before.
    The tokens carry that sign-in's auth_time, amr and acr. Client-facing change: a request
    with max_age that ended in login_required after a fresh sign-in now gets a code.

Added

  • acr_values=mfa can require a second-factor sign-in (ACR_VALUES_MODE, default off). A
    client asking for a step-up sign-in before a sensitive action could not require a second factor:
    acr_values was ignored, although discovery advertises acr_values_supported
    ["pwd","mfa"]. Under enforce, a request whose acr_values names mfa (and not pwd) gets a
    code only for a sign-in with a second factor, and otherwise the error
    unmet_authentication_requirements (OpenID Connect Unmet Authentication Requirements 1.0);
    observe issues the code and audits acr_values_unmet; off changes nothing. acr_values
    is carried through the login and consent pages and bound into the consent token. Client-facing
    change: the new error code, only under enforce. The client must still check acr/amr in the
    token (as bff.StepUp.Satisfied does): acr_values passes through the browser like every
    authorization parameter, so a user can drop it. Deploy note: a user without MFA turned on
    cannot meet acr_values=mfa; run observe first.

Documentation

  • The production env template lists every opt-in control. deploy/env/socrate.env.example
    gains MFA_RECOVERY_CODES_REVERIFY_MODE (v1.16.1), AUDIT_INTEGRITY_SCAN_INTERVAL_SECONDS and
    _LOOKBACK_SECONDS, and ADMIN_PASSWORD_LOGIN_ENABLED, each commented out at its default; it
    now matches the monitoring deploy kit's copy. No behaviour change.