Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Feishu & Lark's OAuth Endpoints #760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions endpoints/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ var Facebook = oauth2.Endpoint{
TokenURL: "https://graph.facebook.com/v3.2/oauth/access_token",
}

// Feishu is the endpoint for Feishu.
var Feishu = oauth2.Endpoint{
AuthURL: "https://accounts.feishu.cn/open-apis/authen/v1/authorize",
TokenURL: "https://open.feishu.cn/open-apis/authen/v2/oauth/token",
}

// Foursquare is the endpoint for Foursquare.
var Foursquare = oauth2.Endpoint{
AuthURL: "https://foursquare.com/oauth2/authorize",
Expand Down Expand Up @@ -98,6 +104,12 @@ var KaKao = oauth2.Endpoint{
TokenURL: "https://kauth.kakao.com/oauth/token",
}

// Lark is the endpoint for Lark.
var Lark = oauth2.Endpoint{
AuthURL: "https://accounts.larksuite.com/open-apis/authen/v1/authorize",
TokenURL: "https://open.larksuite.com/open-apis/authen/v2/oauth/token",
}

// LinkedIn is the endpoint for LinkedIn.
var LinkedIn = oauth2.Endpoint{
AuthURL: "https://www.linkedin.com/oauth/v2/authorization",
Expand Down