mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-06 12:07:25 +01:00
[#746] added microsoft oauth2 provider
This commit is contained in:
1 parent
bcb9c22685
commit
5298543ce4
41 files changed
+279
-141
No files matched your search
@@ -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