[#7130] added Lark OAuth2 provider

Co-authored-by: mashizora <30516315+mashizora@users.noreply.github.com>
This commit is contained in:
Gani Georgievandmashizora committed 2025-08-30 12:57:14 +03:00
1 parent cc902f2df8
commit 45af9e201c
37 files changed
+254 -99

No files matched your search

+10 -1
View File
@@ -7,7 +7,7 @@ import (
)
func TestProvidersCount(t *testing.T) {
expected := 31
expected := 32
if total := len(auth.Providers); total != expected {
t.Fatalf("Expected %d providers, got %d", expected, total)
@@ -305,4 +305,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Trakt); !ok {
t.Error("Expected to be instance of *auth.Trakt")
}
// lark
p, err = auth.NewProviderByName(auth.NameLark)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Lark); !ok {
t.Error("Expected to be instance of *auth.Lark")
}
}