refactor: rewrite to cookie based auth (#578)

* rewrite to cookie based auth

* remove interceptor
This commit is contained in:
Hayden 2023-10-06 22:44:43 -05:00 committed by GitHub
parent 2cd3c15215
commit 1365bdfd46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 155 additions and 71 deletions

View file

@ -49,7 +49,14 @@ func WithRegistration(allowRegistration bool) func(*V1Controller) {
}
}
func WithSecureCookies(secure bool) func(*V1Controller) {
return func(ctrl *V1Controller) {
ctrl.cookieSecure = secure
}
}
type V1Controller struct {
cookieSecure bool
repo *repo.AllRepos
svc *services.AllServices
maxUploadSize int64