Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Make requirement for verified email optional #1505

Open
hughns opened this issue Aug 11, 2023 · 4 comments
Open

Make requirement for verified email optional #1505

hughns opened this issue Aug 11, 2023 · 4 comments
Assignees
Labels
A-Configuration Related on what is configurable and how it can be configured A-Policy Related the policy engine T-Enhancement New feature of request

Comments

@hughns
Copy link
Member

hughns commented Aug 11, 2023

Currently all users are required to have a verified email address. This should be configurable in future.

@sandhose sandhose self-assigned this Aug 24, 2023
@sandhose
Copy link
Member

It turns out, it only really was an issue because I forgot to mark the imported email as the primary email when doing an upstream oauth registration. This is fixed as part of #1660, which also introduces a new claim import parameter for the email, set_email_verification:

  • never: do not set the imported email as verified
  • always: always set the imported email as verified
  • import: mark the email as verified if the OAuth upstream set the email_verified claim to true (<- this is the default behaviour)

@sandhose sandhose added T-Enhancement New feature of request A-Configuration Related on what is configurable and how it can be configured A-Policy Related the policy engine labels Oct 11, 2023
@dklimpel
Copy link
Contributor

dklimpel commented Jan 6, 2024

How can I register a local user without verify the email?

  • register via REST
  • verfify via CLI

I am not able to automate this. Either CLI or REST, but both is not possible.

set_email_verification seems only to work for an upstream provider.

@sandhose
Copy link
Member

There are a few ways to work around this:

  • when registering the user through the CLI (mas-cli manage register-user), adding an email with the -e/--email flag should make it verified
  • if the email was added but not verified, it can be verified through the CLI: mas-cli manage verify-email <USERNAME> <EMAIL>
  • the new Admin API doesn't yet support managing user emails, so that should be added and tracked in a new issue (or at least in New REST-like admin API #3057)
  • the old GraphQL API has mutations to add emails and verify them, if you want to dig there

@matrixbot
Copy link
Member

For your information, this issue has been copied over to the Element fork of matrix-authentication-service: element-hq/matrix-authentication-service#1505

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Configuration Related on what is configurable and how it can be configured A-Policy Related the policy engine T-Enhancement New feature of request
Projects
None yet
Development

No branches or pull requests

4 participants