publiclab / plots2

a collaborative knowledge-exchange platform in Rails; we welcome first-time contributors! :balloon:
https://publiclab.org
GNU General Public License v3.0
960 stars 1.83k forks source link

PLANNING ISSUE: Multi party authentication #2676

Closed SidharthBansal closed 6 years ago

SidharthBansal commented 6 years ago

This is the checklist for the OAuth Login

Implementation common to all providers

Google Provider

Github Provider

Twitter Provider

Facebook Provider

Handling Security Vulnerabilities

Front End

jywarren commented 6 years ago

wow i love this page 😆 ✅✅✅✅✅✅

jywarren commented 6 years ago

screen shot 2018-07-02 at 6 04 01 pm

Interesting message from Trello.com - a reference for our own UI maybe! 👍

SidharthBansal commented 6 years ago

I love this feature.

SidharthBansal commented 6 years ago

@jywarren one way for https://github.com/publiclab/plots2/issues/2676#issuecomment-401952085 is to have an additional field in the user_model. If a user makes an account on the public lab using the legacy authentication system then it is zero. If a user makes an account via google then it is one, fb=>2, twitter=>3, github=>4. If a user resets a password then this field is reset to zero. So, that way we can check while logging the user in if the username's field is non zero this imply he has not generated password even once.

Zero field indicates that the account password is generated by the user Non zero field indicates the account password is not generated by the user yet.

Any other idea about this feature?

SidharthBansal commented 6 years ago

I am breaking the front end portion into sequential ftos. So that the I can focus on the other backend features

jywarren commented 6 years ago

Non zero field

This sounds interesting. Can you just walk through whether this could be achieved by looking at the password field itself, and the user tags, and explain to me if that would not be enough information to achieve this? I think I follow but just so we know we're understanding this the same way!

SidharthBansal commented 6 years ago

@jywarren please see #3032 for password_checker field conversation. I have added few items to the checklist which we discussed on google hangouts. Thanks

SidharthBansal commented 6 years ago

@jywarren is there any need to bcrypt the uid before storing in the db? I don't think there is a need. I have added few items to the checklist on which I am working nowadays. Also, is there any need to notify the user weekly or monthly that they have not set up there passwords yet OR can we just ignore this? I think it will be frustrating for the clients to get weekly messages until they set up their passwords. There are many websites which enables you to log in and log out without notifying users via email to set passwords.

jywarren commented 6 years ago

Yeah, i think we can skip notifications, but display a note on their profile maybe?

On Tue, Jul 24, 2018 at 1:31 AM Sidharth Bansal notifications@github.com wrote:

@jywarren https://github.com/jywarren is there any need to bcrypt the uid before storing in the db? I don't think there is a need. I have added few items to the checklist on which I am working nowadays. Also, is there any need to notify the user weekly or monthly that they have not set up there passwords yet OR can we just ignore this? I think it will be frustrating for the clients to get weekly messages until they set up their passwords. There are many websites which enables you to log in and log out without notifying users via email to set passwords.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/2676#issuecomment-407286024, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJySJP9IIkeKGawcDHkxsKVWnrpWzks5uJrEZgaJpZM4Tru9Q .

SidharthBansal commented 6 years ago

OK, I have updated the checklist according to your suggestions. Thanks

SidharthBansal commented 6 years ago

@jywarren can we close this now?

jywarren commented 6 years ago

Yes! And congratulations!

SidharthBansal commented 6 years ago

Congrats to you to. And thanks for your help. You helped at each stage of the project. You are the best mentor @jywarren . I will be learning Machine Learning and AI at my university in the current semester. Is there any project on PL where I can apply these, can learn and contribute?

jywarren commented 6 years ago

I wonder about a couple things --

  1. could you use it to find related tags or related posts? Maybe for suggesting tags from the body text so tagging is more automated?
  2. could you use it to try to make an image classifier, along these lines, that's web-based? https://publiclab.org/notes/warren/1-16-2012/clashifier-open-source-web-based-image-classification-prototype
SidharthBansal commented 6 years ago

Thanks. I like both of them. The first project seems to me beginner project. So, will like to take it if we need it. What do you suggest?

SidharthBansal commented 6 years ago

that's web-based?

@jywarren if we have anything different from RoR/web but ML and AI is involved, even then, I am happy to contribute. I love contributing to PL and learning things here. I want to increase my knowledge. You know a lot of things. And I think you can guide me better than anyone else. Can you please think and tell if any other place we need it?

jywarren commented 6 years ago

well, we have had a long-term interest in trying "interest point finding and matching" -- i.e. "bundle adjustment" on MapKnitter, so that we may start to auto-match images against their background map, and/or against each other. It's a complex problem, but having a modular javaScript library for it would be amazing. Or, a web service for it so you submit 2 images and it sends back matched points.

On Mon, Aug 6, 2018 at 11:25 AM Sidharth Bansal notifications@github.com wrote:

@jywarren https://github.com/jywarren if we have anything different from RoR/web but ML and AI is involved even then I am happy to contribute. I love contributing to PL and learning things here. I want to increase my knowledge. I am also interested in web/RoR. You know a lot of things. Can you please think and tell if any other place we need it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/2676#issuecomment-410746981, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ3jn-VJS-aBlMrlXDiOQBWxQzrNSks5uOF_YgaJpZM4Tru9Q .

SidharthBansal commented 6 years ago

Oh you mean two images background comparison to get the common points in both of them. Sound interesting. I will search tonight these things. PL is really huge!!!

SidharthBansal commented 6 years ago

Thanks

jywarren commented 6 years ago

Haha PL really is huge lol ... 😂

On Mon, Aug 6, 2018, 11:42 AM Sidharth Bansal notifications@github.com wrote:

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/2676#issuecomment-410752471, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ4ZEWfhGw0gfTSPc3L86_mfj2KT-ks5uOGOqgaJpZM4Tru9Q .