mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 08:07:38 +02:00
authenticate/proxy: add backend refresh (#438)
This commit is contained in:
parent
9a330613aa
commit
ec029c679b
35 changed files with 1226 additions and 445 deletions
|
@ -72,15 +72,18 @@ func TestOptions_Validate(t *testing.T) {
|
|||
|
||||
func TestNew(t *testing.T) {
|
||||
good := newTestOptions(t)
|
||||
good.CookieName = "A"
|
||||
|
||||
badRedirectURL := newTestOptions(t)
|
||||
badRedirectURL.AuthenticateURL = nil
|
||||
badRedirectURL.CookieName = "B"
|
||||
|
||||
badCookieName := newTestOptions(t)
|
||||
badCookieName.CookieName = ""
|
||||
|
||||
badProvider := newTestOptions(t)
|
||||
badProvider.Provider = ""
|
||||
badProvider.CookieName = "C"
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue