Skip to content

Auth: sign-up & sign-in restricted to @iiitl.ac.in emails #6

Closed

Description

@MrImmortal09

Context

This is the core privacy guarantee: only people with IIITL credentials can enter the platform. All alumni and students have @iiitl.ac.in emails issued during their time at IIITL; related #10).

Acceptance criteria

  • Use Auth.js (NextAuth v5) — or propose alternative in the issue
  • Sign-up accepts only emails matching /@iiitl\.ac\.in$/ (case-insensitive). All other emails are rejected with a clear message.
  • Google OAuth is allowed only if hd === "iiitl.ac.in" (Google Workspace hosted-domain check); other Google accounts are rejected
  • Sessions stored in the DB with a 30-day rolling expiry
  • /login and /register UIs wired to real flow
  • Failed / rejected sign-up attempts logged (for abuse monitoring) but not shown to user
  • Rate-limit magic link requests to 5 per email per hour
  • If user has signed up with google then complete he should be prompted to create a new password. Make sure this is atomic and save the user only when password is created

Depends on #1.

Activity

  1. added
    backendServer / database / API work
    authSign-in, sessions, roles, access
    privacyUser data, visibility, consent
    on Apr 9, 2026
  2. DistantMyth commented on Apr 10, 2026

    @DistantMyth
    Contributor

    @MrImmortal09 I'd like to work on this issue. Could you please assign it to me?

  3. MrImmortal09 commented on Apr 10, 2026

    @MrImmortal09
    CollaboratorAuthor

    @MrImmortal09 I'd like to work on this issue. Could you please assign it to me?

    Yeah sure. Feel free to open a pr

  4. DistantMyth commented on Apr 10, 2026

    @DistantMyth
    Contributor

    @MrImmortal09 could you please look at #40

  5. aeev07 commented on Apr 11, 2026

    @aeev07

    Can I still get assigned to this issue?

  6. MrImmortal09 commented on Apr 11, 2026

    @MrImmortal09
    CollaboratorAuthor

    Here u go @Freny07

  7. Abhishek-Dige commented on Apr 11, 2026

    @Abhishek-Dige
    Contributor

    Can I also work on this issue ? I have made some progress.

  8. MrImmortal09 commented on Apr 11, 2026

    @MrImmortal09
    CollaboratorAuthor

    @Abhishek-Dige This issue was first assigned to @Freny07 , if he doesn't make a PR until midnight then you can make one.

  9. MrImmortal09 commented on Apr 11, 2026

    @MrImmortal09
    CollaboratorAuthor

    @Abhishek-Dige You can pick another issue.

  10. mini-walkerx commented on Apr 11, 2026

    @mini-walkerx

    🔗 @Freny07 opened PR #44 for this issue and has been auto-assigned.

  11. 9 remaining items

  12. mini-walkerx commented on Apr 12, 2026

    @mini-walkerx

    ✅ Successfully unassigned @Abhishek-Dige. Waitlist queue triggers to be processed here.

  13. Ewan-Dkhar commented on Apr 13, 2026

    @Ewan-Dkhar
    Contributor

    I'd like to work on this. @MrImmortal09 could you assign this to me

  14. MrImmortal09 commented on Apr 13, 2026

    @MrImmortal09
    CollaboratorAuthor

    @Ewan-Dkhar Feel free to work on this.

  15. Ewan-Dkhar commented on Apr 14, 2026

    @Ewan-Dkhar
    Contributor

    @MrImmortal09 I have a question. For failed sign-up attemp, do i log it to audit or make a different model for recording abuse?

  16. MrImmortal09 commented on Apr 14, 2026

    @MrImmortal09
    CollaboratorAuthor

    @MrImmortal09 I have a question. For failed sign-up attemp, do i log it to audit or make a different model for recording abuse?

    Just log it for now, You can make a different PR if you want to for solving abuse problem.

  17. Ewan-Dkhar commented on Apr 14, 2026

    @Ewan-Dkhar
    Contributor

    ok

  18. MrImmortal09 commented on Apr 16, 2026

    @MrImmortal09
    CollaboratorAuthor

    @Ewan-Dkhar We have a deadline for this website and it needs to be presented to a Faculty. Could you please confirm how much time would it require for you to raise a PR?

  19. Ewan-Dkhar commented on Apr 16, 2026

    @Ewan-Dkhar
    Contributor

    @MrImmortal09 I'll be done with the pr by Tomorrow.

  20. Ewan-Dkhar commented on Apr 16, 2026

    @Ewan-Dkhar
    Contributor

    @MrImmortal09 i have a question. For sign up, since there is no password field, should i use magic links to verify the email and sign up the user?

  21. mini-walkerx commented on Apr 17, 2026

    @mini-walkerx

    🔗 @Ewan-Dkhar opened PR #49 for this issue and has been auto-assigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authSign-in, sessions, roles, accessbackendServer / database / API workpriority:highHigh priorityprivacyUser data, visibility, consentvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions