Compare commits
10 Commits
407895337b
...
v1.0.19
Author | SHA1 | Date | |
---|---|---|---|
19ddd10164 | |||
97aae89ce9 | |||
1af505196a | |||
02b33167ef | |||
98ea369664 | |||
62c27305f9 | |||
7864ed98e6 | |||
57d7e0cc69 | |||
c29340669c | |||
ae06c8fd14 |
28
CHANGELOG.md
28
CHANGELOG.md
@ -1,3 +1,31 @@
|
|||||||
|
## [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)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Remove superfluous response write ([c293406](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/commit/c29340669ce60e19aca391ac19da3b9d275f1687))
|
||||||
|
|
||||||
|
## [1.0.16](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.15...v1.0.16) (2024-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Change oath scopes & direct debugging to console. ([1d026d3](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/commit/1d026d3ec450c94f3e0401d35f858db1627f6ef7))
|
||||||
|
|
||||||
## [1.0.15](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.14...v1.0.15) (2024-03-10)
|
## [1.0.15](http://gitea.gitea.svc.cluster.local:3000/djpbessems/ContainerImage.SpamasaurusRex/compare/v1.0.14...v1.0.15) (2024-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,14 +52,19 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Store the token in the session
|
// 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.Values["token"] = token
|
||||||
session.Save(r, w)
|
session.Save(r, w)
|
||||||
|
|
||||||
w.Write([]byte("Authentication successful!"))
|
// w.Write([]byte("Authentication successful!"))
|
||||||
|
|
||||||
url := "https://alias.spamasaurus.com"
|
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) {
|
func healthHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Reference in New Issue
Block a user