mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 11:08:14 +02:00
[#1643] added Gitea OAuth2 provider
Co-authored-by: Steve MacLeod <sjmacleoddev@gmail.com>
This commit is contained in:
1 parent
2a34eca07a
commit
4c73e16f54
36 files changed
+197
-94
No files matched your search
@@ -144,4 +144,13 @@ func TestNewProviderByName(t *testing.T) {
|
||||
if _, ok := p.(*auth.Authentik); !ok {
|
||||
t.Error("Expected to be instance of *auth.Authentik")
|
||||
}
|
||||
|
||||
// gitea
|
||||
p, err = auth.NewProviderByName(auth.NameGitea)
|
||||
if err != nil {
|
||||
t.Errorf("Expected nil, got error %v", err)
|
||||
}
|
||||
if _, ok := p.(*auth.Gitea); !ok {
|
||||
t.Error("Expected to be instance of *auth.Gitea")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user