Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Account managment #188

Open
lane711 opened this issue Jul 20, 2023 · 7 comments
Open

Add Account managment #188

lane711 opened this issue Jul 20, 2023 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@lane711
Copy link
Owner

lane711 commented Jul 20, 2023

This will expand on:
#185

Add full account management:

  1. user registration endpoint
  2. roles / role mapping
  3. user login endpoint (returns token)
  4. add databases tables with migrations (via drizzle)
@lane711 lane711 added enhancement New feature or request help wanted Extra attention is needed labels Jul 20, 2023
@acoreyj
Copy link
Contributor

acoreyj commented Aug 18, 2023

@lane711
Copy link
Owner Author

lane711 commented Aug 18, 2023 via email

@chrisspiegl
Copy link

I see there is an implementation in progress. Would it make sense to integrate with Zero Trust from CloudFlare for authentication purpose? Just a thought to keep things in the CloudFlare stack of possibilities?

I do see taht the Lucia library also would use D1 which makes it also Cloudflare only 👍.

@lane711
Copy link
Owner Author

lane711 commented Oct 23, 2023

thx @chrisspiegl I actually haven't looked into Zero Trust, but thanks for making me aware. I'll check it out

@chrisspiegl
Copy link

I just setup Zero Trust myself for a few things and it's really fascinating how powerful it is.

As far as I understand it, it would not support any way to have people register an account for themselves… but for the type of content management Sonic is supposed to do, I believe a manual "admin adds you to the allowed users" would be perfectly fine (or give access to all email addresses ending in @your-company.com).

Zero trust can be easily setup to completely block access to any domain (and path) on the cloudflare network. And it has built in auth methods which you then do not have to worry about at all.

Making it very flexible & basically a "no code" implementation for Sonic to just be behind a login system that's on Cloudflare anyways.

I am kind of excited about the possibilities & especially the possibility to have less / no code on my end when using Zero Trust 👍.

@lane711
Copy link
Owner Author

lane711 commented Oct 25, 2023

@chrisspiegl this sounds great. So would we still store user account info in our D1 database or is that managed too? I'll have to dive into this once time permits.

@chrisspiegl
Copy link

@lane711 the user information is completely stored in Zero Trust and one can activate a handful of auth providers (where you have to then have your own app registrations with). Things like Facebook, Google, GitHub, etc. are supported out of the box.

The one thing I don't know at this point (because up to this point I did not care) is: if it is possible to then "relate a user login to a content piece".

But if it's just for "certain people can get access" type thing… that is definitely possible with Zero Trust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants