Skip to content

E-mail pushers are not created during registration when non-interactive SSO registration (localpart_template) is used #15904

Open
@matrixbot

Description

@matrixbot

This issue has been migrated from #15904.


Description

synapse/handlers/register.py#L1008 need token to add email pusher.

But synapse/handlers/register.py#L392 doesn't provide any.

Steps to reproduce

  • add enable_notifs: true and notif_for_new_users: true config
  • configure Synapse to accept SSO login
  • provide SSO template for non-interactive registration (ie: localpart_template)
  • provide SSO template for email
  • login with a SSO account that provide some email attribute, according to prev config
  • see that email notif are not enable => email pusher was not created at registration

Homeserver

matrix.org

Synapse Version

1.87

Installation Method

Docker (matrixdotorg/synapse)

Database

Workers

Single process

Platform

Configuration

No response

Relevant log output

-

Anything else that would be useful to know?

The creation of email pushers should not rely on a token when registering, there is no need to track devices for them (see matrix-org/synapse#15890)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions