Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Consent flow skipped during SSO user registration if username is left at default #10732

@AndrewFerr

Description

@AndrewFerr

Description

When using an SSO mapping provider that automatically sets a new user's mxid localpart (as opposed to prompting the user to choose it), then requiring consent tracking on new user registration doesn't work: registering a new user via SSO does not prompt for consent & lets the registration finish as if consent was not required.

Steps to reproduce

Expected results: The registration flow should eventually open a webpage at /_matrix/consent and not register a new user until the consent form on that page has been submitted.

Actual results: The registration will complete without prompting for consent, as if user_consent.require_at_registration was not set. Other consent configurations still take affect, though, such as user_consent.block_events_error.

Version information

  • Homeserver: Self-hosted

If not matrix.org:

  • Version: 1.41.1

  • Install method: git clone

  • Platform: Fedora 34

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Social LoginLogin via external identity providersS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions