From 1f7426bd1843cf9c798fa1b01f5a473a5c603a58 Mon Sep 17 00:00:00 2001 From: Lukasz Leszczuk Date: Tue, 10 Sep 2019 15:45:51 +0200 Subject: [PATCH] Add ValidateGroupWithSession for TestProvider --- oauthproxy_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oauthproxy_test.go b/oauthproxy_test.go index d02ce43..53ea843 100644 --- a/oauthproxy_test.go +++ b/oauthproxy_test.go @@ -279,6 +279,10 @@ func (tp *TestProvider) ValidateGroup(email string) bool { return true } +func (tp *TestProvider) ValidateGroupWithSession(session *sessions.SessionState) bool { + return tp.ValidateGroup(session.Email) +} + func TestBasicAuthPassword(t *testing.T) { providerServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { logger.Printf("%#v", r)