Code Monkey home page Code Monkey logo

Comments (5)

chimon2000 avatar chimon2000 commented on July 18, 2024 1

@AndrewNatoli i think that would be the most secure option but agree that's probably way more than we need.

from cmpd-holiday-gift.

AndrewNatoli avatar AndrewNatoli commented on July 18, 2024

@jonvin006 We're changing how authentication works in the app from the above description

from cmpd-holiday-gift.

chimon2000 avatar chimon2000 commented on July 18, 2024

Changes to workflow:

image

Auth

  1. User enters phone no.
  2. If exists, enter login flow
  3. If does not exist, enter registration flow

Registration

  1. User registers (mobile phone no. required)
  2. Request for Approval email is dispatched to admin with Approval CTA
    1. Admin clicks CTA
  3. Admin logs in, approves user.
    1. Can view which app user registered from.
    2. Can select apps user has access to and access level.
  4. Admin should be able to see which app the user registered from, then select each app the user should be able to access as well as the access-level for each app.
  5. Approval email is dispatched to user notifying them that they can login.

Login

  1. User enters phone number from registration
  2. User sent login pin from Firebase
  3. User enters login pin, Firebase token forwarded to server
  4. Resolve user access & access level from token.
    1. If allowed access & enabled, user is logged in.
    2. If not allowed or disabled, shown inactivity page

from cmpd-holiday-gift.

chimon2000 avatar chimon2000 commented on July 18, 2024

@AndrewNatoli the main pieces that I am concerned about are the email CTAs. Our conversation about how easy it is for our user base to lose emails has kind of stuck in my head. Not sure of what a good solution to that problem would be though.

SMS would probably be the easiest user experience, but that's not free.

Push notifications would force users to auth with a browser that supports them.

Thoughts?

from cmpd-holiday-gift.

AndrewNatoli avatar AndrewNatoli commented on July 18, 2024

@chimon2000 Registration by counselors is typically done at their desk I imagine meaning they should have access to their email at the time they register. Logging in however they may be on a mobile device that they don't have access to their email on so I think overall the flow is fine.

We can also build out the admin to support showing registered users that have registered and verified, as well as the ones that have not verified their account yet.

An even crazier idea would be doing verification by phone. We have the school's number in the affiliation table; we could have the counselor put their extension in. But I think that's where we'd be going down the road of over-engineering 😆

from cmpd-holiday-gift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.