[#1643] added Gitea OAuth2 provider

Co-authored-by: Steve MacLeod <sjmacleoddev@gmail.com>
This commit is contained in:
Gani GeorgievandSteve MacLeod committed 2023-01-20 10:17:57 +02:00
1 parent 2a34eca07a
commit 4c73e16f54
36 files changed
+197 -94

No files matched your search

+9
View File
@@ -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")
}
}