-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix user info link to user info #1899
Conversation
WalkthroughThe pull request updates the LinkedIn OAuth2 adapter to align with the latest LinkedIn API specifications. The changes primarily focus on modifying the authentication scope and user information retrieval process. The Changes
Sequence DiagramsequenceDiagram
participant Client
participant LinkedinAdapter
participant LinkedinAPI
Client->>LinkedinAdapter: Request Auth URL
LinkedinAdapter-->>Client: Generate URL with expanded scope
Client->>LinkedinAPI: Authorize with new scope
LinkedinAPI-->>Client: Return OAuth2 Code
Client->>LinkedinAdapter: Get User Info with Code
LinkedinAdapter->>LinkedinAPI: Fetch User Info from new endpoint
LinkedinAPI-->>LinkedinAdapter: Return User Details
LinkedinAdapter-->>Client: Processed User Information
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (5)src/adapters/oauth2/linkedinAdapter.ts (5)
Changing the scope from a basic
Switching from
Including the sample response structure in comments is excellent for future reference and maintainability.
Using
The fallback to Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks Lovel
Issue: Giveth/giveth-dapps-v2#4493 (comment)
the profileUrl is changed to
https://api.linkedin.com/v2/userinfo
fromhttps://api.linkedin.com/v2/me
and also the response type is changedhttps://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2?context=linkedin%2Fconsumer%2Fcontext#api-request-to-retreive-member-details
Summary by CodeRabbit
New Features
Bug Fixes