Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trimming of gmail.com for user accounts #11586

Closed
wkurniawan07 opened this issue Feb 21, 2022 · 2 comments · Fixed by #11927
Closed

Remove trimming of gmail.com for user accounts #11586

wkurniawan07 opened this issue Feb 21, 2022 · 2 comments · Fixed by #11927
Assignees
Labels
a-Design High-level design or architecture c.Task Other non-user-facing works, e.g. refactoring, adding tests

Comments

@wkurniawan07
Copy link
Member

if (sanitized.toLowerCase().endsWith("@gmail.com")) {
sanitized = sanitized.split("@")[0];
}

UserInfoCookie uic = new UserInfoCookie(email.replaceFirst("@gmail\\.com$", ""));

googleId = email.replaceFirst("@gmail\\.com$", "");

Removing the trailing @gmail.com is a practice forced to us by the old and deprecated GAE Users API. We do not have any reason to do that anymore, so this practice needs to cease.

Need to also migrate entities who are scarred by this practice: accounts, students, instructors. Namely, if the googleId does not contain any @, it should be appended with @gmail.com.

@wkurniawan07 wkurniawan07 added help wanted Moderate difficulty, small localized change; suitable for novice contributors c.Task Other non-user-facing works, e.g. refactoring, adding tests a-Design High-level design or architecture labels Feb 21, 2022
@daongochieu2810
Copy link
Contributor

@wkurniawan07 do you think this is a good first issue?

@wkurniawan07
Copy link
Member Author

Not at all. This issue involves data migration. Even putting help wanted there is already pushing the limits.

@wkurniawan07 wkurniawan07 removed the help wanted Moderate difficulty, small localized change; suitable for novice contributors label Mar 3, 2022
@wkurniawan07 wkurniawan07 self-assigned this Mar 3, 2022
@wkurniawan07 wkurniawan07 removed their assignment Mar 18, 2022
@wkurniawan07 wkurniawan07 added this to the V8.X.0 milestone Apr 15, 2022
@wkurniawan07 wkurniawan07 added this to To do in Authentication Plus via automation Apr 21, 2022
@wkurniawan07 wkurniawan07 moved this from To do to In progress in Authentication Plus Jul 11, 2022
Authentication Plus automation moved this from In progress to Done Nov 2, 2022
zhaojj2209 added a commit that referenced this issue Nov 2, 2022
Co-authored-by: Howard Liu <howard@ixnet.work>
Co-authored-by: wuqirui <53338059+hhdqirui@users.noreply.github.com>
Co-authored-by: Zhao Jingjing <54243224+zhaojj2209@users.noreply.github.com>
@wkurniawan07 wkurniawan07 removed this from the V8.X.0 milestone Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-Design High-level design or architecture c.Task Other non-user-facing works, e.g. refactoring, adding tests
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants