-
Notifications
You must be signed in to change notification settings - Fork 27
feat: feishu connector (#71) #493
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
base: main
Are you sure you want to change the base?
Conversation
"url": "http://coco.rs/connectors/feishu", | ||
"assets": { | ||
"icons": { | ||
"default": "/assets/icons/connector/feishu/icon.png" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also commit the icon files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
plugins/connectors/feishu/api.go
Outdated
// connect handles the OAuth authorization request | ||
func (h *Plugin) connect(w http.ResponseWriter, req *http.Request, _ httprouter.Params) { | ||
// Get datasource ID from query parameters | ||
datasourceID := req.URL.Query().Get("datasource_id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer to use utils buildin with framework to get parameters h.GetParameter()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is requred, use MustGetParameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Build redirect_uri from request context instead of hardcoded config. Supports multi-environment deployments automatically. Add feishu icon.
- Dynamic redirect_uri support for multi-environment deployment - Complete refresh_token expiry handling - Fix OAuth scope issues with Feishu API - Enhanced documentation with permission requirements
ea077d6
to
2ca38e4
Compare
@shzhzichen, I've noticed an issue with the icon, The format appears to be incorrect, which is causing them to display improperly. |
1、The icon issue has been resolved. The data source connection requires frontend collaboration for development, and the data source needs to be configured with authentication information. For specific parameters, please refer to the README. 2、Since the Feishu and Lark connectors are highly similar, the code structure has been redesigned to be compatible with both Feishu and Lark connectors. |
Okay, I will revise it again according to this structure. |
the icon size should |
ok, all done |
@shzhzichen it seems the |
@medcl Yes, I will use Postman to test the creation of data sources and the querying of document lists before submitting the PR. |
@shzhzichen you can merge the code from |
use |
What does this PR do
add feishu connector
Rationale for this change
Standards checklist