6 Commits

Author SHA1 Message Date
19ddd10164 chore(release): 1.0.19 [skip ci]
## [1.0.19](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.18...v1.0.19) (2024-03-11)

### Bug Fixes

* Add error handling to session store ([1af5051](1af505196a))
2024-03-11 03:24:51 +00:00
97aae89ce9 Merge branch 'main' of https://code.spamasaurus.com/djpbessems/ContainerImage.SpamasaurusRex
All checks were successful
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 32s
Container & Helm chart / Container image (push) Successful in 1m34s
Container & Helm chart / Helm chart (push) Successful in 41s
Container & Helm chart / Semantic Release (push) Successful in 1m37s
2024-03-10 22:48:36 +11:00
1af505196a fix: Add error handling to session store 2024-03-10 22:48:34 +11:00
02b33167ef chore(release): 1.0.18 [skip ci]
## [1.0.18](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.17...v1.0.18) (2024-03-10)

### Bug Fixes

* Replace incorrect http status code ([62c2730](62c27305f9))
2024-03-10 11:30:26 +00:00
98ea369664 Merge branch 'main' of https://code.spamasaurus.com/djpbessems/ContainerImage.SpamasaurusRex
All checks were successful
Container & Helm chart / Semantic Release (Dry-run) (push) Successful in 31s
Container & Helm chart / Helm chart (push) Successful in 17s
Container & Helm chart / Container image (push) Successful in 1m43s
Container & Helm chart / Semantic Release (push) Successful in 33s
2024-03-10 22:27:37 +11:00
62c27305f9 fix: Replace incorrect http status code 2024-03-10 22:27:34 +11:00
2 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,17 @@
## [1.0.19](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.18...v1.0.19) (2024-03-11)
### Bug Fixes
* Add error handling to session store ([1af5051](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/commit/1af505196ad217b91169cdac771de2ec0a35482f))
## [1.0.18](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.17...v1.0.18) (2024-03-10)
### Bug Fixes
* Replace incorrect http status code ([62c2730](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/commit/62c27305f9ec1c922384ec8c44736414e79f8327))
## [1.0.17](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.16...v1.0.17) (2024-03-10)

View File

@ -52,14 +52,19 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) {
}
// Store the token in the session
session, _ := sessionStore.Get(r, "spamasaurusRex")
session, err := sessionStore.Get(r, "spamasaurusRex")
if err != nil {
log.Println(spew.Sdump(err))
return
}
session.Values["token"] = token
session.Save(r, w)
// w.Write([]byte("Authentication successful!"))
url := "https://alias.spamasaurus.com"
http.Redirect(w, r, url, http.StatusAccepted)
http.Redirect(w, r, url, http.StatusSeeOther)
}
func healthHandler(w http.ResponseWriter, r *http.Request) {