aboutsummaryrefslogtreecommitdiff
path: root/app/middleware/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/middleware/auth.go')
-rw-r--r--app/middleware/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/middleware/auth.go b/app/middleware/auth.go
index b8bf7f9..a88313c 100644
--- a/app/middleware/auth.go
+++ b/app/middleware/auth.go
@@ -74,7 +74,7 @@ func (m *AuthenticationMiddleware) redirectToGitHubAuth(c echo.Context) error {
74 Path: "/", 74 Path: "/",
75 Secure: true, 75 Secure: true,
76 HttpOnly: true, 76 HttpOnly: true,
77 SameSite: http.SameSiteStrictMode, 77 SameSite: http.SameSiteLaxMode,
78 }) 78 })
79 79
80 return c.Redirect(http.StatusFound, redir) 80 return c.Redirect(http.StatusFound, redir)
@@ -217,7 +217,7 @@ func (m *AuthenticationMiddleware) HandleCompleteLogin(c echo.Context) error {
217 Path: "/", 217 Path: "/",
218 MaxAge: int(m.CookieDuration.Seconds()), 218 MaxAge: int(m.CookieDuration.Seconds()),
219 Secure: true, 219 Secure: true,
220 SameSite: http.SameSiteStrictMode, 220 SameSite: http.SameSiteLaxMode,
221 }) 221 })
222 222
223 return c.Redirect(http.StatusFound, "/") 223 return c.Redirect(http.StatusFound, "/")