This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch feat/embed
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit 091a3738f2510224c65fc72ea4413c58485b19e1
Author: Zephyr Lin <[email protected]>
AuthorDate: Fri May 31 22:53:49 2024 -0500

    fix connector-google can't connect bug
---
 connector-google/google.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/connector-google/google.go b/connector-google/google.go
index 655d8d1..1e5a423 100644
--- a/connector-google/google.go
+++ b/connector-google/google.go
@@ -127,7 +127,7 @@ func (g *Connector) ConnectorReceiver(ctx 
*plugin.GinContext, receiverURL string
        }
 
        userInfo = plugin.ExternalLoginUserInfo{
-               ExternalID:  respGoogleAuthUserInfo.ID,
+               ExternalID:  respGoogleAuthUserInfo.Sub,
                DisplayName: respGoogleAuthUserInfo.Name,
                Username:    respGoogleAuthUserInfo.Name,
                Email:       respGoogleAuthUserInfo.Email,

Reply via email to