## Description As a part of google sheet scope limitation, the email address is being added in datasource configuration. The email address is being stored in a property, an element in properties (`List<Property>`) with key: 'emailAddress' and value: (<emailId>) . In order to retrieve this property a GET call to endpoint `https://www.googleapis.com/drive/v3/about?fields=user` is being made. This property is being saved while google sheet datasource gets authorised, after access toke retrieval from cloud services. in the endpoint `/saas/{datasourceId}/token`. Since the flow is specific to google sheets, the main code is implemented in googlesheetPluginExecutor. The flow has three steps - Getting access token from datasourceConfiguration - making the call to googleApis and obtaining the email address - saving it back into datasource configuration The authorisation flow itself saves the datasource later on. > TL;DR Adding emailAddress in properties of datasource configuration when google sheets is authorised. Fixes #21902 - New feature (non-breaking change which adds functionality) ## This has been tested - Manual - JUnit ## Checklist: ### Dev activity - [x] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||