eurooooo opened a new pull request, #119:
URL: https://github.com/apache/incubator-answer-plugins/pull/119

   I tried connect to google but faced this issue:
   
   
![HTTP-Error-500-Apache-Answer](https://github.com/apache/incubator-answer-plugins/assets/88925843/ece4c352-5f74-443c-a89c-84892774b865)
   
   Then I printed out fields in **userInfo** in function **ConnectorReceiver** 
in **google.go**. 
   
   
![image](https://github.com/apache/incubator-answer-plugins/assets/88925843/c786eef4-f165-447d-b575-84913ed4e0dc)
   
   It turns out that google doesn't return **id** field as unique identifier 
for users, instead it uses **sub** field.
   
   
![image](https://github.com/apache/incubator-answer-plugins/assets/88925843/0954a25b-ae52-4721-82b3-9291f0a67031)
   
   So I changed **ExternalID: respGoogleAuthUserInfo.ID**:
   
![before](https://github.com/apache/incubator-answer-plugins/assets/88925843/0ec2a218-3c75-4ace-82bb-cf95b1f0dc8a)
   
   to **ExternalID: respGoogleAuthUserInfo.Sub**:
   
![after](https://github.com/apache/incubator-answer-plugins/assets/88925843/d6b338b0-2aba-465b-94ab-397d41406e10)
   
   And I connected to google account successfully.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to