Add ValidateGroupWithSession for TestProvider

This commit is contained in:
Lukasz Leszczuk 2019-09-10 15:45:51 +02:00
parent 8439e72320
commit 1f7426bd18

View File

@ -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)