CoderDojo / community-platform

Zen, the CoderDojo Community Platform!
https://zen.coderdojo.com
MIT License
121 stars 55 forks source link

CoderDojo integration with Profile #1290

Closed Jeddf closed 4 years ago

Jeddf commented 4 years ago

Stages

  1. Existing CoderDojo auth functionality
  2. In production but only accessible by our developers Users directed to RPI Profile for all authentication flows, new linked RPI - CoderDojo accounts can be created with previously unknown email addresses but existing accounts are not affected.
  3. In production but only accessible by our developers Users directed to RPI Profile for all authentication flows, existing CD accounts can be linked and taken over by an RPI account with a matching email address.
  4. Full migration of recently active users, other users can still login using zen password and are then migrated on demand.
  5. Remove Zen login and have all auth through rpi profile.

User goals

Stages 0 - 3

Stages 2-4

Tasks

Task Size: [T]iny / [S]mall / [M]edium / [L]arge / e[X]tra Large

Stage 0

Stage 1 (Behind Flag) Tracked at CoderDojo/cp-zen-platform#1382

Alpha (New accounts only)

Stage 2 (Behind Flag)

Beta (Existing account takeover)

Stage 3

Stage 4

Proposed Migration Plan

Since Dec. 2019, all zen users logging in have had a salted hash saved of their password in the same format as rpi, for users without an existing rpi account under the same address, an rpi account can be created and linked. Next time they try to log in it will redirect to rpi where they'll be able to use the same password.

A new zen login page would then be put in that has just the email address input like google & microsoft & explains the transition to raspberry pi accounts. After submitting the email address there'll be a few possible cases:

Developed from Planning Document by @josephwilk