You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Users that authenticate via oidc_provider do not have email notifications enabled by default, even though the server is configured correctly and they have an email address associated with their account.
Configure Synapse to enable email notifications for new users: email.notif_for_new_users: true and email.enable_notifs: true.
Log in a user for the first time using a custom oidc_provider (in our case Keycloak).
Verify that they automatically have an email address associated with their account.
Open the user settings and see that email notifications are disabled.
I expect the email notifications to be enabled upon first login.
Proposed Solution
One solution to this is to include LoginType.SSO in the auth_result object passed to the post_registration_actions() function here so that prior to the _register_email_threepid() call the access_token could be set to True if auth_result[LoginType.SSO] == True. (Disclaimer: I have not tried this to verify it is a good solution. The idea came from discussion with @kyrias.)