[#746] added microsoft oauth2 provider
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user