1
0
mirror of https://github.com/google/nomulus synced 2026-07-20 06:52:27 +00:00

Allow null GAIA IDs for User objects (#1933)

We were under the mistaken impression before that there was a reliable
way to, out-of-band, get a GAIA ID for a particular email address.
Unfortunately, that isn't the case (at least, not in a scalable way or
one that support agents could use). As a result, we have to allow null
GAIA IDs in the database.

When we (or the support team) create new users, we will only specify the
email address and not the GAIA ID. Then, when the user logs in for the
first time, we will have the GAIA ID from the provided ID token, and we
can populate it then.
This commit is contained in:
gbrodman
2023-02-08 16:10:34 -05:00
committed by GitHub
parent ef3ce79b8a
commit f36d22f4b1
5 changed files with 32 additions and 16 deletions
@@ -1085,7 +1085,7 @@ CREATE TABLE public."TmchCrl" (
CREATE TABLE public."User" (
id bigint NOT NULL,
email_address text NOT NULL,
gaia_id text NOT NULL,
gaia_id text,
registry_lock_password_hash text,
registry_lock_password_salt text,
global_role text NOT NULL,