Added gitee OAuth

Signed-off-by: Yuxiang Gao <yuxiang-gao@outlook.com>
This commit is contained in:
Yuxiang Gao committed 2022-12-31 17:57:40 +08:00
1 parent 9033cd109e
commit 19ccc70fe5
6 files changed
+137 -1

No files matched your search

+9
View File
@@ -117,4 +117,13 @@ func TestNewProviderByName(t *testing.T) {
if _, ok := p.(*auth.Strava); !ok {
t.Error("Expected to be instance of *auth.Strava")
}
// gitee
p, err = auth.NewProviderByName(auth.NameGitee)
if err != nil {
t.Errorf("Expected nil, got error %v", err)
}
if _, ok := p.(*auth.Gitee); !ok {
t.Error("Expected to be instance of *auth.Gitee")
}
}