3
0

4 Commits

Author SHA1 Message Date
Denis Arh
5a347dddb5 Types structs reduced & simplified 2018-07-29 16:37:41 +02:00
Denis Arh
1b06a0ffdb Implement JWT expiration 2018-07-28 12:16:33 +02:00
Denis Arh
c02fec809f Redo auth flags 2018-07-28 12:01:33 +02:00
Denis Arh
d886a98740 Implements JWT authorization along with some refactoring
- introduces auth package, for common (sam, crm) auth handlers
 - routes are now generated inside server package, each handler got its own MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
 - there MountRoute methods are now called from non-generated code so we can inject services to (rest) controllers
2018-07-26 20:12:14 +02:00