Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Shared Profile Data & Auth Across Organizations #40

Closed

Description

@kognise

From a UX perspective, we probably want to make the experience for users who just want to RSVP to events as streamlined and possible. One thing that imo should be considered is user account management. With the current design, users have to create and manage separate accounts across all Chapter instances they're signed up to. This could get tedious.

I think we should have a conversation about possible solutions to this, I'm not very experienced with decentralization in general but I think we could implement some sort of SSO. This would also enable syncing user account details and interests across instances.

One network that solves this exceptionally well is Stack Exchange - we could look into how they do this. I haven't done a lot of research but I think they use something OpenID-related.

I'm open to learn new things!

Activity

  1. AntonioErdeljac commented on Oct 15, 2019

    @AntonioErdeljac
  2. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    @AntonioErdeljac BlockStack looks great, but it seems like users would have to create an account with them first. This might not be a very good experience, especially for users who are less technical.

    But definitely something to consider.

  3. typeofweb commented on Oct 15, 2019

    @typeofweb
  4. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    Not very well-thought-out auth solution idea:

    • User signs up to a Chapter instance with their email/password
    • That instance gives them an id, like [email protected]
    • When the user wants to log into a different instance, they just enter their id
    • They're redirected to a page on the Chapter instance they originally signed up on and then redirected back once once they enter their password

    One glaring problem with this is that if the instance a user originally signed up on shuts down all their data goes poof across all instances. So obviously this isn't the perfect solution, but it's something we could work off of.

  5. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    @mmiszy Auth0 is still very much centralized, and to solve the problems I mentioned freeCodeCamp would have to give out Auth0 creds which isn't a very good plan security-wise.

  6. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    Things we can learn from:

    • Solid/BlockStack
    • Stack Exchange
    • Mastodon

    I'm imagining Chapter as almost the "Mastodon of Meetup groups" - what do y'all think?

  7. typeofweb commented on Oct 15, 2019

    @typeofweb

    We could design the API so that employing a third-party SSO server is just a configuration change. Then it would be irrelevant which SSO provider is used or if Free Code Camp/Chapter deploys their own centralized SSO server in the future.

    I believe the goal of the MVP should be to build a single working instance.

  8. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    @mmiszy Agreed. I just wanted to bring this up now because it is definitely something we should consider in the long run.

  9. bernhard-hofmann commented on Oct 15, 2019

    @bernhard-hofmann
    Contributor

    Hopefully we'll spare users the need to create an account with a username and password. I'd rather an experience along these lines:

    1. Visit the site
    2. Decide to join up/register
    3. Have the option to create an account through email (sent an email link to create a user account) or a social provider (Twitter, GitHub, ...)

    Critical for me, is that users can sign up without having to create a new password if they're already known to a trusted provider.

  10. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    @bernhard-hofmann 100% agreed!!! I'm trying to brainstorm what the trusted entity is.

  11. Dletta commented on Oct 15, 2019

    @Dletta

    Github.com/amark/gun us a decentralized DB that has a decentralized user system. It wouldn’t matter what instance you signed up from, as user data is encrypted and can be shared between instances.

  12. kognise commented on Oct 15, 2019

    @kognise
    MemberAuthor

    @Dletta Gun looks very interesting, I think this is a definite possibility for Chapter! I don't know enough about it yet to vouch for it, though.

  13. Dletta commented on Oct 15, 2019

    @Dletta

    @kognise, I have used it on a few hobby projects and the decentralized/ federated reddit clone notabug.io is using the technology to power it.

    I also like the idea of not needing a login to attend an event, but spam sucks for chapters too

  14. timrodz commented on Oct 15, 2019

    @timrodz

    I recently joined DEV and their login system works through Twitter/Github.

    Of course, this is not the easiest idea, but using an external media service could help us authenticate these users and not worry so much about possible spam from just being able to RVSP without an account.

    Some form of auth -even if basic- is important.

  15. typeofweb commented on Oct 15, 2019

    @typeofweb

    DEV works great, but the difference between DEV and Chapter is that Chapter is supposed to be completely decentralized (anyone can spin up their own instance).

    Edit: Sorry, I misread your comment. Yeah, I also believe that adding the possibility to log in with 3rd party providers such as GitHub, Facebook or Twitter is crucial for good UX.

  16. 30 remaining items

  17. QuincyLarson commented on Oct 28, 2019

    @QuincyLarson
    Contributor

    @amark @xarielx We should not have any data leave the organization's central server. They should have full control of their data. We do not want a Disqus style "comment section that follows you from page to page" like situation, as then it just becomes another centralized platform that organizations will be skeptical of.

    After we ship the MVP, we can consider adding some sort of discovery network that people can opt into. I imagine it would involve organizations voluntarily exposing endpoints to a "registry" of sorts that syncs users, organizations, events and other data.

    I've added this to the roadmap.

  18. tunnckoCore commented on Oct 28, 2019

    @tunnckoCore

    @QuincyLarson any data leave the organization's central server.

    @amark, I always thought that's one of the reasons going decentralized is hard - because laws & policies. This world has too much regulations.

    @QuincyLarson We do not want a Disqus style "comment section that follows you from page to page" like situation, as then it just becomes another centralized platform that organizations will be skeptical of.

    It's exactly like that, except that it won't be in a centralized place.

  19. jacobbogers commented on Nov 14, 2019

    @jacobbogers

    Want to add some points,

    Password resets should be as frictionless as possible

    (like github, facebook, whatever)

    1. Indicate you want password reset (obviously if you have NOT created an account with a 3rd party provider aka facebook/google/etc)
    2. fill in your email, to prevent "fishing" , the software should never answer "we don't know this email", but "if this email is registered an email will be sent to you with information how to reset your password"
    3. User received email with a link (includes a token int the url that is only time-limited validity),
    4. User clicks on the link and gets redirected to a password reset page
    5. Important: after successful password reset, all other previous tokens sent out for to reset passwords will be immediately invalidated on the server,

    Ad5.) Sometimes emails can be slow and ppl use the password reset button as a "happy switch" in frustration, You cannot used the older reset-emails to reset your password.

    Different provider account should identify the same user via same email

    If someone logs in via a provider (maybe he created an account first, but is slow in remembering the password, and just "oh I will use my facebook account today", we can detect its the same person because we receive the "email address" info via the provider and we identify users solely by their email.

    GDPR

    GDPR was a big deal in our company last year, since the fines are stupendously hefty. But this only affect servers/companies on European soil.
    I am not a lawyer but what it boils down to my tech team was:

    1. If a user request his/her info to be deleted, this needs to happen within 24h and it needs to be scrubbed completely (for chapter this means: all blogspot, evidence of participating in meetups etc)
    2. prove that the user data is secure enough (only VERY limited nr of people have access to DB where user info is stored).

    Someone needs to talk to a lawyer about this, the legal paperwork is freely downloadable from the EC website, but at least we can put a proper legal disclaimer to indemnify FCC. (I think this is already covered by Apache 2 license)

    SSO

    I don't think there should be an SSO, this is just a single server, maybe hosting several chapters, prolly the closest thing to SSO is to have a user paspoort their identity to other chapters (within the same server instance). Its also easier to manage token wise since most likely different chapters would most likely be hosted on different subdomains. aka berlin.codeangels.de and hamburg.codeangels.de

  20. jacobbogers commented on Nov 14, 2019

    @jacobbogers

    Oh just to add auth0 has a free tire

    • 7000 free active users
    • unlimited logins

    I think this would cover most uses cases of chapter, so I think its a good option use auth0 in MVP.
    Also auth0 has some good standing so it would put at rest any worries ppl might with regard to privacy

  21. allella commented on Nov 15, 2019

    @allella
    Contributor

    @jacobbogers thanks for the points.

    In many cases, like for GDPR, we can hopefully leverage FCC prior experience hosting people all over the world.

    FCC auth is a single domain, as best I can tell, so I'm not sure their experience there will inform a solution for Chapter.

    Also, the desire to not have to register a new account for every Chapter instance you encouter will surely have more debate, but for now it would seem the focus is on an MVP solution that doesn't entirely paint things into a cornr.

    Do you see a near-term MVP solution that lends itself to the future problem of people wanting to access multiple servers. As much as I'd like to not sign up 5 times for 5 different Chapters, it seems I have 5 Slack accounts and 3 Basecamp accounts, so it's not entirely out of the ordinary to just register a new account if you're part of the minority that needs multiple accounts on the same service.

  22. jacobbogers commented on Nov 15, 2019

    @jacobbogers

    @allella hello
    When I was speaking of a chapter I am talking about an entrance in the table chapters, (within the same docker instance), that's as far as I would take "SSO" (maybe that is already the intent for the MVP, correct me if I am wrong)

    PS: maybe the chapter table could be renamed to franchise, because it is sharing the same name with the overall product)))

    Near future user sharing

    My idea of federating the the different "chapters" (as in the product) to enable cross user posting and rsvp without explicit signon , I was thinking of if PKI infrastructure could work, where chapters (the product) can opt to join into this federation.

    FCC, creates a root CA and issues "sub" CA's to federated chapters who opt in to the federation

    The individual federated chapters sign their user info with the specific key issued by FCC to them.

    Other Chapters can verify the user (info + signature) has been signed by a key issued by FCC so they can accept the user to post/comments/RSVP

    Just spitballing but I was thinking along these lines.

  23. allella commented on Nov 15, 2019

    @allella
    Contributor

    Thanks again for the notes. My feeling is this is all well beyond the MVP, but it's good to have ideas about what's possible.

    Quincy has a vision about how this product will work so that will likely steer to what degree each "Organization" (a deployment / instance of Chapter) are concerned with other organizations.

    You can see a situation where tightly coupling organizations will run into a wall if one organization is using an old version and others are using new versions and the syncing depends on everybody running the latest code. This could quickly break down and/or get real complicated if it's not built on a protocol that doesn't change.

    Even if the organizations don't syndicate anything, it would seem 3rd party tools could be built to hit the APIs to fill in the gaps. For instance, in Greenville, SC we have an app that aggregates all the tech meetups from Meetup.com and Eventbrite and shows and shares the same through and API.

    I'm expecting an organization and/or chapters within to be able to expose their events through the Chapter APIs so we can automate this promoting of events. This has nothing to do with user accounts, but it's a use case I'm expecting that involves pulling event data from the APIs of many Chapter organizations (FCC, Women Who Code, a local Chapter organization, etc).

    We changed the "chapter" table from a more generic "groups" table to match it with our terminology I'm not sure "franchise" does much pro or con vs "chapter", but so I'd personally vote to leave it as is.
    #47 (comment)

  24. Dletta commented on Nov 15, 2019

    @Dletta

    Still think Gun Db is a viable choice as it is a protocol first, which could be used to sync the data the instances wishes, out to other instances.

  25. jacobbogers commented on Nov 15, 2019

    @jacobbogers

    @allella you are welcome,

    Thanks for the update on the table rename chapter -> groups, I did not know it was renamed.

    My main contributing point for this MVP was Password resets should be as frictionless as possible part (The rest of my comments was more about on ongoing discussion on federation etc.)

    I can make a PR -draft- for the authentication flow.

  26. QuincyLarson commented on Nov 15, 2019

    @QuincyLarson
    Contributor

    This issue is on the roadmap, which means we will get to it after our MVP. I will close this issue for now so we can focus on resolving our non-roadmap issues first.

  27. allella commented on Nov 20, 2019

    @allella
    Contributor

    For those who missed it. Here are the Nov 15th meeting decisions on an MVP for authentication, which is just a Google login integration to start.

    Quincy put this conversation on the roadmap for after an MVP.

  28. allella commented on Jan 1, 2020

    @allella
    Contributor

    This conversation was continued at #305

    Also, the use of "SSO" above is likely not in the context most were thinking.

    The ability for a user to authenticate using their Google account is apparently using OAuth 2.0, and SSO / SAML is a different enterprise use case.

  29. allella commented on Feb 10, 2020

    @allella
    Contributor

    Chat from today's Chapter meeting.

    Mihir Somani 2:29 PM
    You mentioned that one of the benefits of using OAuth with social media is that it allows users to share the information about chapters/events easily since we already have the "details" of the social account.
    But, I believe for this reason, we need to add support for Facebook OAuth as well since Google doesn't really have any popular social media platforms.
    Quincy Larson 2:30 PM
    Mihir thanks for your feedback. We may add Facebook auth in the future but Google Auth is the natural option because it has integrated calendar, and people are much more willing to create new gmail accounts than new Facebook accounts.
    Saritta Hines 2:32 PM
    I think using Facebook with OAuth has a negative connotation associated with it..as far as sharing data etc...Twitter would be a better option imo than FB
    Mihir Soman 2:33 PM
    I believe it's better to have both. passport.js is an amazing library which lets us add OAuth policies very easily and smoothly.

  30. QuincyLarson commented on Feb 12, 2020

    @QuincyLarson
    Contributor

    The main problem with having multiple auth options is people forget which one they used, and they often have different email addresses associated with different social media accounts. Passport is smart, but it isn't psychic.

    The correct number of authentication options to offer is 1. freeCodeCamp made the mistake of offering many, and ever since then we get emails from angry people saying we lost their data when in fact they just accidentally signed in using a different social auth provider and created a duplicate account.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionRoadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions