[#1643] added Gitea OAuth2 provider

Co-authored-by: Steve MacLeod <sjmacleoddev@gmail.com>
This commit is contained in:
Gani Georgiev
2023-01-20 10:17:57 +02:00
parent 2a34eca07a
commit 4c73e16f54
36 changed files with 197 additions and 94 deletions
+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")
}
}