Skip to content

8.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:45
Immutable release. Only release title and notes can be modified.

Added

  • Allow app_launch to forward query parameters named in the new
    SOCIAL_AUTH_APP_LAUNCH_FORWARDED_PARAMS setting to social:begin, such as
    SAML idp or fields listed in SOCIAL_AUTH_FIELDS_STORED_IN_SESSION. The
    iss, next, and CSRF token fields cannot be overridden.
  • Accept app_launch navigations from other subdomains or sites when their
    Referer matches the new SOCIAL_AUTH_APP_LAUNCH_ALLOWED_ORIGINS setting.
  • Both launch bridges provide a fields list of name-value pairs for custom
    social_django/launch.html templates. Use it to render hidden fields so
    a forwarded parameter named items cannot shadow params.items. For automatic
    submission, call HTMLFormElement.prototype.submit.call(form) to handle
    forwarded fields named submit.

Changed

  • Support app_launch with backends that have no ID token issuer, such as
    OAuth2 and SAML backends. These launches omit iss and reject a requested
    iss; invalid issuer configuration is still rejected.
  • Accept app_launch navigations with Sec-Fetch-Site: none, which browsers
    send for user-initiated navigations such as links opened from native apps.
    Missing Fetch Metadata still requires a trusted Referer.
  • Partial pipelines now default to seven days independently of the email
    verification lifetime. Set SOCIAL_AUTH_PARTIAL_PIPELINE_EXPIRED_THRESHOLD
    to override the lifetime globally or for a specific backend.

Breaking

  • Require social-auth-core 7.3.0 for partial-pipeline expiry and initiator binding.
  • clearsocial --age applies only to verification codes and nonces. Partial
    cleanup follows the same expiry policy as resuming a partial, including
    per-backend overrides and disabled expiry.

Security

  • Preserve the original expiry time when a legacy Django partial resumes and
    halts again.

Fixed

  • Launch authentication for signed-in users in app_launch so the bridge can
    link accounts and reauthenticate like a login form. Applications that relied
    on the redirect to next or LOGIN_REDIRECT_URL should check authentication
    before sending users to the bridge. idp_launch still redirects signed-in users.