[#7130] added Lark OAuth2 provider

Co-authored-by: mashizora <30516315+mashizora@users.noreply.github.com>
This commit is contained in:
Gani Georgiev
2025-08-30 12:51:34 +03:00
parent cc902f2df8
commit 45af9e201c
37 changed files with 254 additions and 99 deletions

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")
}
}