airbytehq / airbyte

The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
https://airbyte.com
Other
16.12k stars 4.12k forks source link

Source BingAds: support oauth (java part) #7442

Closed annalvova05 closed 3 years ago

annalvova05 commented 3 years ago

Python part

BingAds docs Necessary scopes values: offline_access user.read

Example of consent url: https://login.microsoftonline.com/common/oauth2/v2.0/authorize? client_id= &response_type=code &redirect_uri= &response_mode=query &scope=https://ads.microsoft.com/offline_access%20user.read

Example of token url: https://login.microsoftonline.com/common/oauth2/v2.0/token -ContentType application/x-www-form-urlencoded -Method POST -Body "client_id=$clientId&scope=https://ads.microsoft.com/offline_access%20user.read&code=_code_&grant_type=authorization_code&redirect_uri=_url_"

where accounts, customer_id, developer_token, user_id, reports_start_date, hourly_reports, daily_reports, weekly_reports, monthly_reportsshould be forwarded from UI part

The BingAds oAuth2 implementation returns refresh_token

antixar commented 3 years ago

duplicate This issues will be fixed with #6294