[#746] added microsoft oauth2 provider

This commit is contained in:
Gani Georgiev committed 2022-10-31 21:18:00 +02:00
1 parent bcb9c22685
commit 5298543ce4
41 files changed
+279 -141

No files matched your search

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