Skip to content

[DISCUSSION] New User Login Methods #244

Closed

Description

@eldadfux

We are starting to think about new login methods that will be available for future releases.
We would love to get the community feedback regarding new ideas for user signups:

These are some of the ideas we have, and we would like to get more.

  • OTP / Email code
  • SMS
  • Email
  • Anonymous login
  • 2FA (should work only with email/password or with any method?)
  • Hardware U2F keys
  • WebAuthn API
  • Existing OAuth Access token

If you have reference for implementations in other projects or apps that will be great, also any technical docs could be awesome as well.

Activity

  1. added
    discussion
    on Oct 29, 2019
  2. self-assigned this
    on Oct 29, 2019
  3. sagarvd01 commented on Oct 29, 2019

    @sagarvd01
    Contributor

    My suggestions on this are

    • Email OTP login alone isn't much safe (without a password). 2FA should be enforced in this case.
    • SMS based login doesn't require 2FA.
    • Anonymous login is a good idea but certain checks should be implemented to prevent abuse.
  4. eldadfux commented on Oct 29, 2019

    @eldadfux
    MemberAuthor

    @sagarvd01 thanks for your feedback.

    Why in your opinion OTP alone isn't safe enough?

    About the Anonymous login, we already have abuse mechanism in place the work on all login methods to protect from brute-force attacks.

  5. christyjacob4 commented on Oct 30, 2019

    @christyjacob4
    Contributor

    @eldadfux There are also situations where a user may want to receive a call get the OTP instead of an SMS. Twilio seems to be the most popular option to handle SMS, Calls and Emails
    https://www.twilio.com/

  6. eldadfux commented on Oct 30, 2019

    @eldadfux
    MemberAuthor

    @christyjacob4 thats sound like a good idea but we don’t want to be biased towards a commercial company like @twillio (which I love, but that doesn’t matter), or make the setup more complex.

I guess that we should allow different adapters to allow the enabling of this kind of features as there are no notable open-source solutions that I am aware of either for calls or SMS.

    How do you see the workflow of enabling SMS / Call services as part of the authentication service? Is it part of the settings? A new settings page just for auth? Love to get your feedback

    Anyway I think it important that we put a lot of emphasis on making sure we stay un-opinionated where we can’t use open-source solutions and easy to get started or setup even when such a 3rd party integration possible, meaning it shouldn’t be a requirement to setup.

  7. pinned this issue on Oct 31, 2019
  8. sagarvd01 commented on Oct 31, 2019

    @sagarvd01
    Contributor

    Hi @eldadfux , in my opinion, email ownership may be changed over time. Especially when users login with business emails. So we can't distinguish whether it's the same person or not.

    Additionally, Firebase by Google provides a good sdk for authentication purpose, which will reduce a lot of work.

  9. eldadfux commented on Nov 1, 2019

    @eldadfux
    MemberAuthor

    @sagarvd01 I definitely agree that email ownership may change over time. This is something we need to think of when relying on email as the main recovery process and identification of the user's accounts.

    I don't think the usage of business email should be a major concern for us, as this can actually be treated as an advantage for people wanting to have different accounts for personal or company usage.

    Regarding Firebase, we are building an open-source and self-hosted product. Meaning, people can use it for free, set it up everywhere they want and control their data. Relying on a commercial, paid, SAAS product as an internal dependency will go against all these goals.

  10. monatis commented on Nov 14, 2019

    @monatis

    Hi @eldadfux you might want to have a look at Jasmin SMS gateway to implement SMS login and varification. It is open source and can be readily containerized with Docker, and it supports both http and smpp protocols.

  11. eldadfux commented on Nov 14, 2019

    @eldadfux
    MemberAuthor

    @monatis wow this seems like a really cool project and it's awesome they have a docker container! checking it out now.. thank you!

  12. m7md10 commented on Jun 17, 2020

    @m7md10

    Glad I found this amazing project , one thing that keeps me away to switch from Firebase is Phone number auth , any update about SMS login method?

    thanks!

  13. eldadfux commented on Jun 17, 2020

    @eldadfux
    MemberAuthor

    @m7md10 this is something we definitely want to add, but no timelines yet.

  14. drandell commented on Jun 20, 2020

    @drandell
    Contributor

    A create session & return access token would be very useful login alternative.

  15. PineappleIOnic commented on Sep 2, 2020

    @PineappleIOnic
    Contributor

    Hardware U2F keys would be a nice addition for those who require alot of security on appwrite

  16. eldadfux commented on Sep 3, 2020

    @eldadfux
    MemberAuthor

    @PineappleIOnic cool idea!

  17. PineappleIOnic commented on Sep 4, 2020

    @PineappleIOnic
    Contributor

    We could use the WebAuthn API for the client-side prospect which has wide compatability with firefox, chrome, edge and safari.

  18. added
    hacktoberfest
    on Sep 10, 2020
  19. eldadfux commented on Sep 10, 2020

    @eldadfux
    MemberAuthor

    As mentioned in #354 another useful method we can add here is to login with existing OAuth access tokens (today we are creating them ourselves). This will be specially beneficial when integrating with native OAuth SDKs for better UX.

  20. unpinned this issue on Sep 21, 2020
  21. saibotma commented on Nov 30, 2020

    @saibotma

    Anonymous login or login by username without an email would be great as some projects don't have unique emails for their users.

  22. templatedop commented on Jan 4, 2021

    @templatedop

    SMS OTP login will be the best one.

  23. locked and limited conversation to collaborators on Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionhacktoberfest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions