Commit Graph

3 Commits

Author SHA1 Message Date
🐙PiperYxzzy
8ab45e2401 Login, JWT and auth overstructure
* Signup -> Login -> JWT-Doot flow now works for users
* Administrators cannot currently sign up for obvious reasons
* Segmented the main.go methods into a core controller package
2022-05-01 12:31:41 +02:00
🐙PiperYxzzy
6db02148ea Building and returning JWTs on login
* Created Util package for assorted items
* Currently generates an HMAC key on startup, to be changed
* JWT also includes login role
2022-04-30 16:30:07 +02:00
🐙PiperYxzzy
47ac0cdc07 Adding models, DB access, signup, login
* Created Base, Auth, User and Admin models
* Added skeleton API structure containing: User signup, User & Admin
login, authorized zones, ping tests
* Simple user signup functional
* Skeleton user login functional, no means to verify as of yet
* Added POSTMAN file
2022-04-30 16:02:26 +02:00