Skip to content

Update deprecated OAuth scopes and stale docs URLs#16

Open
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
ZLeventer:fix/update-deprecated-scopes
Open

Update deprecated OAuth scopes and stale docs URLs#16
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
ZLeventer:fix/update-deprecated-scopes

Conversation

@ZLeventer
Copy link
Copy Markdown

Supersedes #13.

Problem

Two files still reference deprecated LinkedIn OAuth scopes that cause a hard authorization error on the OAuth consent screen (screenshot: https://i.imgur.com/Nfz0u2y.png), and both documentation URLs point to docs.microsoft.com which no longer resolves to the correct pages.

Changes

server/src/main/resources/config.properties

Replaces all four deprecated scopes with their current equivalents:

Deprecated Replacement
r_emailaddress email
r_liteprofile profile
rw_ads (see Marketing API note below)
rw_organization_admin (see Marketing API note below)

The default config now uses the standard OpenID Connect product scopes (openid, profile, email, w_member_social) which work without additional product approval.

server/src/main/java/com/example/api/LinkedInMarketingController.java

  • Updates the Marketing API scope comment: rw_adsr_ads, w_ads; rw_organization_admin is replaced by granular scopes in the Marketing Developer Platform
  • Fixes two docs.microsoft.com URLs → learn.microsoft.com (the current canonical domain for LinkedIn API docs)

- config.properties: replace r_emailaddress, r_liteprofile, rw_ads,
  rw_organization_admin (all deprecated) with current OpenID Connect
  scopes: openid, profile, email, w_member_social
- LinkedInMarketingController.java: update Marketing API scope comment
  (rw_ads → r_ads, w_ads) and fix docs.microsoft.com URLs to
  learn.microsoft.com (the current canonical domain)

Fixes: deprecated scopes cause an authorization error on the OAuth
consent screen; see https://i.imgur.com/Nfz0u2y.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant