Add logout endpoint (#107)

Add logout endpoint that clears the auth cookie + optional "logout-redirect" config option, to which, when set, the user will be redirected.
This commit is contained in:
Thom Seddon
2020-06-03 14:00:47 +01:00
committed by GitHub
parent 655eddeaf9
commit 8b3a950162
7 changed files with 96 additions and 1 deletions

View File

@ -2,4 +2,7 @@
format:
gofmt -w -s internal/*.go internal/provider/*.go cmd/*.go
.PHONY: format
test:
go test -v ./...
.PHONY: format test