[#3364] added mailcow OAuth2 provider

Co-authored-by: thisni1s <nils@jn2p.de>
This commit is contained in:
Gani Georgievandthisni1s committed 2023-10-14 14:52:35 +03:00
1 parent 69983bff5e
commit 01e33c07fe
45 files changed
+3332 -3219

No files matched your search

+10 -1
View File
@@ -205,7 +205,7 @@ func TestNewProviderByName(t *testing.T) {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Yandex); !ok {
t.Error("Expected to be instance of *auth.yandex")
t.Error("Expected to be instance of *auth.Yandex")
}
// patreon
@@ -216,4 +216,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Patreon); !ok {
t.Error("Expected to be instance of *auth.Patreon")
}
// mailcow
p, err = auth.NewProviderByName(auth.NameMailcow)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Mailcow); !ok {
t.Error("Expected to be instance of *auth.Mailcow")
}
}