Add ValidateGroupWithSession for TestProvider
This commit is contained in:
parent
8439e72320
commit
1f7426bd18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user