Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

feat(users): User model and authentication pattern #53

Open
4 tasks
peterschutt opened this issue Oct 31, 2022 · 1 comment
Open
4 tasks

feat(users): User model and authentication pattern #53

peterschutt opened this issue Oct 31, 2022 · 1 comment

Comments

@peterschutt
Copy link
Member

  • user model and instructions on how to include in migrations
  • cli to create admin user
  • authentication mechanism
  • integration with service authorization mechanisms
@peterschutt
Copy link
Member Author

  • will implement client credentials grant flow
  • the authorization server will be this one, but need to document that a 3rd party should be used in production
  • ensure necessary abstraction so that external auth server is 0 friction
  • cli to create users, not super user
  • super user credential defined in environment (maybe doesn't even really need to be a user in the db).
  • if super user password is not defined, the super user is disabled - this can allow for a redeployment after admin users have been created.
  • admin users can create customer accounts
  • customer accounts authenticate and get a token that has expiry
  • api routes require token for viewing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant