You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Shared Profile Data & Auth Across Organizations #40
DiscussionIdeas, feature requests, views on features. Anything which is a discussion.RoadmapThis is an issue/feature that is on the road map for the future
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!
Reacted by Fran Zekan, Rishi Raj, Eugene Omar and Tang Li Qun
@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.
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.
@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.
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.
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.
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.
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.
Reacted by Subroto, OYEWO Ayooluwa , Vali Shah, Tang Li Qun, Carlos S. Nah and Jacob Bogers
Reacted by Lexi Mattick, Juan Morais, Rishi Raj and Jacob Bogers
@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.
@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.
Password resets should be as frictionless as possible
(like github, facebook, whatever)
Indicate you want password reset (obviously if you have NOT created an account with a 3rd party provider aka facebook/google/etc)
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"
User received email with a link (includes a token int the url that is only time-limited validity),
User clicks on the link and gets redirected to a password reset page
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:
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)
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
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
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.
@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.
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)
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.
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.
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.
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.
DiscussionIdeas, feature requests, views on features. Anything which is a discussion.RoadmapThis is an issue/feature that is on the road map for the future
Activity
AntonioErdeljac commentedon Oct 15, 2019
https://blockstack.org/ Might be good for this. See how it is implemented in this project (Found on ProductHunt a while ago)
https://arcaneoffice.com/
kognise commentedon Oct 15, 2019
@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.
typeofweb commentedon Oct 15, 2019
https://auth0.com seems like a good alternative, at least for the MVP
kognise commentedon Oct 15, 2019
Not very well-thought-out auth solution idea:
[email protected]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.
kognise commentedon Oct 15, 2019
@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.
kognise commentedon Oct 15, 2019
Things we can learn from:
I'm imagining Chapter as almost the "Mastodon of Meetup groups" - what do y'all think?
typeofweb commentedon Oct 15, 2019
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.
kognise commentedon Oct 15, 2019
@mmiszy Agreed. I just wanted to bring this up now because it is definitely something we should consider in the long run.
bernhard-hofmann commentedon Oct 15, 2019
Hopefully we'll spare users the need to create an account with a username and password. I'd rather an experience along these lines:
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.
kognise commentedon Oct 15, 2019
@bernhard-hofmann 100% agreed!!! I'm trying to brainstorm what the trusted entity is.
Dletta commentedon Oct 15, 2019
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.
kognise commentedon Oct 15, 2019
@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.
Dletta commentedon Oct 15, 2019
@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
timrodz commentedon Oct 15, 2019
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.
typeofweb commentedon Oct 15, 2019
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.
30 remaining items
QuincyLarson commentedon Oct 28, 2019
@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.
tunnckoCore commentedon Oct 28, 2019
@amark, I always thought that's one of the reasons going decentralized is hard - because laws & policies. This world has too much regulations.
It's exactly like that, except that it won't be in a centralized place.
jacobbogers commentedon Nov 14, 2019
Want to add some points,
Password resets should be as frictionless as possible
(like github, facebook, whatever)
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:
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.deandhamburg.codeangels.dejacobbogers commentedon Nov 14, 2019
Oh just to add auth0 has a free tire
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
allella commentedon Nov 15, 2019
@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.
jacobbogers commentedon Nov 15, 2019
@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
chaptertable could be renamed tofranchise, 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.
allella commentedon Nov 15, 2019
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)
Dletta commentedon Nov 15, 2019
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.
jacobbogers commentedon Nov 15, 2019
@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.
QuincyLarson commentedon Nov 15, 2019
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.
allella commentedon Nov 20, 2019
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.
allella commentedon Jan 1, 2020
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.
allella commentedon Feb 10, 2020
Chat from today's Chapter meeting.
QuincyLarson commentedon Feb 12, 2020
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.