[#335] added Discord OAuth2 provider

This commit is contained in:
Gani Georgiev committed 2022-08-21 20:04:38 +03:00
1 parent 0b8c7f6883
commit 49b084cf50
18 files changed
+246 -149

No files matched your search

+9
View File
@@ -54,4 +54,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Gitlab); !ok {
t.Error("Expected to be instance of *auth.Gitlab")
}
// discord
p, err = auth.NewProviderByName(auth.NameDiscord)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Discord); !ok {
t.Error("Expected to be instance of *auth.Discord")
}
}