1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-06 18:34:54 +02:00

Added gitee OAuth

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

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")
}
}