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

Implement user creation and login #153

Merged
merged 21 commits into from
Sep 24, 2024
Merged

Implement user creation and login #153

merged 21 commits into from
Sep 24, 2024

Conversation

pwbriggs
Copy link
Owner

@pwbriggs pwbriggs commented Jul 14, 2024

User creation, login, sessions, and authorization. We should probably also do a lot of audit logging here.

Some todo items:

  • Implement a way to bootstrap creation of first account. Discussion of methods at Add auth #70
  • Users can only be created by librarians
  • Clean up
    • Fix imports from ./ to ~/ for consistency
    • Fix Biome errors

Fixes #70

@pwbriggs pwbriggs linked an issue Jul 14, 2024 that may be closed by this pull request
@pwbriggs
Copy link
Owner Author

Clarification: admins are also librarians. They just have additional permissions. When isAdmin is set on a user, isLibrarian must also.

@pwbriggs pwbriggs mentioned this pull request Jul 14, 2024
Copy link
Owner Author

@pwbriggs pwbriggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soo, um, should I really be storing these credentials in the database? Maybe I could use like a secret in an env variable to encrypt the cred json?

Copy link

vercel bot commented Sep 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
library ✅ Ready (Inspect) Visit Preview Sep 24, 2024 1:49am

@pwbriggs
Copy link
Owner Author

review phase!

@pwbriggs pwbriggs enabled auto-merge (squash) September 24, 2024 01:49
@pwbriggs pwbriggs merged commit bf096e5 into main Sep 24, 2024
4 checks passed
@pwbriggs pwbriggs deleted the auth branch September 24, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add auth
1 participant