https://github.com/knadh/tinyauth
Tiny, opinionated authentication library for Go. Work in progress and not usable right now.
https://github.com/knadh/tinyauth
Last synced: 5 months ago
JSON representation
Tiny, opinionated authentication library for Go. Work in progress and not usable right now.
- Host: GitHub
- URL: https://github.com/knadh/tinyauth
- Owner: knadh
- Created: 2020-06-06T10:52:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-06T10:59:23.000Z (over 5 years ago)
- Last Synced: 2025-03-19T00:17:59.079Z (10 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 15
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ccamel - knadh/tinyauth - Tiny, opinionated authentication library for Go. Work in progress and not usable right now. (Go)
README
Tiny, opinionated authentication library for Go. Work in progress and not usable right now.
### Concepts
- An to add/edit/delete users.
- Users are identified by an identifier (a string: email, username, phone, anything).
- Supports hashed password and password authentication.
- Password authentication can be turned off to enable external OAuth.
- Permissions are represented as a list of strings per user. Eg: `post.edit, post.create` etc.
- User account statuses: `pending, enabled, disabled` etc.
- Pluggable functions for password reset, recovery etc.
- Multiple "store" backends (Postgres, Redis etc.) via a Store interface.