[#2762] added Yandex OAuth2 provider

Co-authored-by: Valentine <xb2w1z@gmail.com>
This commit is contained in:
Gani Georgiev
2023-06-23 14:13:43 +03:00
parent 0a61db6efd
commit 435eca6f35
39 changed files with 152 additions and 37 deletions
+9
View File
@@ -198,4 +198,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.VK); !ok {
t.Error("Expected to be instance of *auth.VK")
}
// yandex
p, err = auth.NewProviderByName(auth.NameYandex)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Yandex); !ok {
t.Error("Expected to be instance of *auth.yandex")
}
}