Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat(plugin): update connector receiver interface

LinkinStars098873eea647
diff --git a/plugin/connector.go b/plugin/connector.go
index f6b89e46..41b8c2fd 100644
--- a/plugin/connector.go
+++ b/plugin/connector.go
@@ -22,7 +22,7 @@ type Connector interface {
// ConnectorReceiver presents the receiver of the connector
// It handles the callback endpoint of the connector, and returns the
- ConnectorReceiver(ctx *GinContext) (userInfo ExternalLoginUserInfo, err error)
+ ConnectorReceiver(ctx *GinContext, receiverURL string) (userInfo ExternalLoginUserInfo, err error)
}
// ExternalLoginUserInfo external login user info
@@ -34,6 +34,7 @@ type ExternalLoginUserInfo struct {
// optional. This username is used preferentially during registration
Username string
// optional. If email exist will bind the existing user
+ // IMPORTANT: The email must have been verified. If the plugin can't guarantee the email is verified, please leave it empty.
Email string
// optional. The avatar URL provided by the third-party login platform
Avatar string