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

@ -33,6 +33,7 @@ func TestConfigDefaults(t *testing.T) {
assert.Equal("google", c.DefaultProvider)
assert.Len(c.Domains, 0)
assert.Equal(time.Second*time.Duration(43200), c.Lifetime)
assert.Equal("", c.LogoutRedirect)
assert.Equal("/_oauth", c.Path)
assert.Len(c.Whitelist, 0)