Skip to content

Commit d550f2d

Browse files
songquanpengpeick
authored andcommitted
feat: add Feishu & Lark's OAuth Endpoints
merges golang#760 (golang#760)
1 parent 3108de2 commit d550f2d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

endpoints/endpoints.go

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ var Facebook = oauth2.Endpoint{
4141
TokenURL: "https://graph.facebook.com/v3.2/oauth/access_token",
4242
}
4343

44+
// Feishu is the endpoint for Feishu.
45+
var Feishu = oauth2.Endpoint{
46+
AuthURL: "https://open.feishu.cn/open-apis/authen/v1/authorize",
47+
TokenURL: "https://open.feishu.cn/open-apis/authen/v2/oauth/token",
48+
}
49+
4450
// Foursquare is the endpoint for Foursquare.
4551
var Foursquare = oauth2.Endpoint{
4652
AuthURL: "https://foursquare.com/oauth2/authorize",
@@ -98,6 +104,12 @@ var KaKao = oauth2.Endpoint{
98104
TokenURL: "https://kauth.kakao.com/oauth/token",
99105
}
100106

107+
// Lark is the endpoint for Lark.
108+
var Lark = oauth2.Endpoint{
109+
AuthURL: "https://open.larksuite.com/open-apis/authen/v1/authorize",
110+
TokenURL: "https://open.larksuite.com/open-apis/authen/v2/oauth/token",
111+
}
112+
101113
// LinkedIn is the endpoint for LinkedIn.
102114
var LinkedIn = oauth2.Endpoint{
103115
AuthURL: "https://www.linkedin.com/oauth/v2/authorization",

0 commit comments

Comments
 (0)