1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-07 10:39:05 +02:00

[#5909] added Linear OAuth2 provider

Co-authored-by: chnfyi <143424481+chnfyi@users.noreply.github.com>
This commit is contained in:
Gani Georgiev
2024-11-22 22:42:04 +02:00
parent 305e183f58
commit e3bf81cb79
34 changed files with 167 additions and 36 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestProvidersCount(t *testing.T) {
expected := 28
expected := 29
if total := len(auth.Providers); total != expected {
t.Fatalf("Expected %d providers, got %d", expected, total)
@@ -278,4 +278,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Wakatime); !ok {
t.Error("Expected to be instance of *auth.Wakatime")
}
// linear
p, err = auth.NewProviderByName(auth.NameLinear)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Linear); !ok {
t.Error("Expected to be instance of *auth.Linear")
}
}