Changed the cookie store options to work locally
This commit is contained in:
@@ -26,6 +26,7 @@ There are many features to be implemented!
|
|||||||
- [X] API (not complete, but going)
|
- [X] API (not complete, but going)
|
||||||
- [ ] Add more logging (and configure the logger)
|
- [ ] Add more logging (and configure the logger)
|
||||||
- [ ] Need to add many UTs
|
- [ ] Need to add many UTs
|
||||||
|
- [ ] Figure out how to distribute the database (the migrations and whatnot problems)
|
||||||
- [ ] Need to think about where the authentication endpoints are its separation
|
- [ ] Need to think about where the authentication endpoints are its separation
|
||||||
of concerns
|
of concerns
|
||||||
- [ ] Create an interface to get data from a QR code so that we can have both
|
- [ ] Create an interface to get data from a QR code so that we can have both
|
||||||
|
|||||||
@@ -83,6 +83,13 @@ func startWebserver() {
|
|||||||
// setRoutes(router)
|
// setRoutes(router)
|
||||||
|
|
||||||
store := cookie.NewStore([]byte("secret"))
|
store := cookie.NewStore([]byte("secret"))
|
||||||
|
store.Options(sessions.Options{
|
||||||
|
Path: "/",
|
||||||
|
MaxAge: int(time.Hour * 24),
|
||||||
|
HttpOnly: true,
|
||||||
|
Secure: false,
|
||||||
|
SameSite: http.SameSiteLaxMode,
|
||||||
|
})
|
||||||
router.Use(sessions.Sessions("mysessions", store))
|
router.Use(sessions.Sessions("mysessions", store))
|
||||||
|
|
||||||
// Set auth groups
|
// Set auth groups
|
||||||
|
|||||||
+1
-1
@@ -5,4 +5,4 @@ REQUIRED_VARS := registry repo
|
|||||||
$(foreach v,$(REQUIRED_VARS),\
|
$(foreach v,$(REQUIRED_VARS),\
|
||||||
$(if $(value $(v)),,$(error Variable '$(v)' is required but empty)))
|
$(if $(value $(v)),,$(error Variable '$(v)' is required but empty)))
|
||||||
|
|
||||||
tag = v0.0.83-alpha
|
tag = v0.0.91-alpha
|
||||||
|
|||||||
Reference in New Issue
Block a user