This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
The following commit(s) were added to refs/heads/main by this push:
new 62198c0 fix connector-google can't connect bug
62198c0 is described below
commit 62198c01a252085929ff2af394d94f1034053d76
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,