-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
Connector Name
linkedin-ads
Connector Version
5.6.2
What step the error happened?
During OAuth authentication (before any sync)
Relevant information
Airbyte includes deprecated LinkedIn scopes (r_emailaddress, r_liteprofile) in the OAuth authorization request. For new LinkedIn developer apps, these scopes are no longer authorized and LinkedIn rejects the request with an unauthorized_scope error.
Steps to reproduce
- Create LinkedIn Ads dev app
- Start LinkedIn Ads source in Airbyte Cloud
- Click Authenticate
- LinkedIn returns error due to deprecated scopes
Expected behavior
OAuth should succeed. Airbyte should not request deprecated scopes; only supported scopes should be used.
Actual behavior
LinkedIn blocks OAuth flow with unauthorized_scope error when requesting r_emailaddress and r_liteprofile.
- Airbyte UI shows:
"OAuth login failed: Scope 'r_emailaddress' is not authorized for your application"
OAuth URL generated by Airbyte (sanitized)
Suggested fix
Remove deprecated scopes (r_emailaddress, r_liteprofile, r_basicprofile) and update to valid LinkedIn scopes. If email/profile are needed, use OpenID Connect scopes like openid, profile, email.
Environment
- Airbyte: Cloud
- LinkedIn App Type: Production ( my own )
- Browser: Brave
Evidence
- LinkedIn OAuth screen redirects back with an error.
- Airbyte UI shows:
"OAuth login failed: Scope 'r_emailaddress' is not authorized for your application" - See attached screenshot.
External references
- Stack Overflow: https://stackoverflow.com/questions/77016303/dont-have-r-emailaddress-or-r-liteprofile-scopes-in-linkedin-app-api
- Auth0 Community (LinkedIn deprecation): https://community.auth0.com/t/the-linkedin-login-is-deprecated-updating-to-the-new-scopes-is-necessary/113696
Related issues
Related issue:: #68679
Relevant log output
Contribute
- Yes, I want to contribute
Internal Tracking: https://github.com/airbytehq/oncall/issues/11168