mirror of https://gitee.com/answerdev/answer.git
feat(plugin): update connector receiver interface
This commit is contained in:
parent
824b68c152
commit
098873eea6
|
@ -22,7 +22,7 @@ type Connector interface {
|
||||||
|
|
||||||
// ConnectorReceiver presents the receiver of the connector
|
// ConnectorReceiver presents the receiver of the connector
|
||||||
// It handles the callback endpoint of the connector, and returns the
|
// 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
|
// ExternalLoginUserInfo external login user info
|
||||||
|
@ -34,6 +34,7 @@ type ExternalLoginUserInfo struct {
|
||||||
// optional. This username is used preferentially during registration
|
// optional. This username is used preferentially during registration
|
||||||
Username string
|
Username string
|
||||||
// optional. If email exist will bind the existing user
|
// 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
|
Email string
|
||||||
// optional. The avatar URL provided by the third-party login platform
|
// optional. The avatar URL provided by the third-party login platform
|
||||||
Avatar string
|
Avatar string
|
||||||
|
|
Loading…
Reference in New Issue