summaryrefslogtreecommitdiff
path: root/issues
diff options
context:
space:
mode:
Diffstat (limited to 'issues')
-rw-r--r--issues/authentication_authorisation/migrate-user-collections.gmi20
1 files changed, 14 insertions, 6 deletions
diff --git a/issues/authentication_authorisation/migrate-user-collections.gmi b/issues/authentication_authorisation/migrate-user-collections.gmi
index 62a68d3..f0b3609 100644
--- a/issues/authentication_authorisation/migrate-user-collections.gmi
+++ b/issues/authentication_authorisation/migrate-user-collections.gmi
@@ -22,12 +22,20 @@ The auth(entic|oris)ation system provides the following endpoint(s) for getting
* `/oauth2/user/`: Note the trailing forward slash (/). This endpoint provides user data such as the user's ID, email and name, and their group membership information.
-There is no quick way to bridge the two systems. The most plausible is:
-
-* get the user-details from the GN3 endpoint
-* extract the email from the user-details
-* use email to fetch the old user-id from redis
-* use old user-id to fetch collections
+Since we know the form that the user account are stored in redis[1], we can use that to search for user collections.
+
+The steps would be something like:
+
+* User registers afresh using their email and (possibly new) password
+* User logs in
+* System searches for user with the same email in redis
+* If user with similar email is not found, do nothing
+* If user with similar email is found, retrieve their old user-id
+* Use old user-id to identify their collections
+* If no collections are found using the old user-id, do nothing.
+* If at least one collection is found using the old user-id present user with option to "migrate data"
+* User click the "migrate data" button
+* System changes user-id on the identified collections from the old user-id to the new user-id
## Links