You'll get access to over 3,000 product manager interview questions and answers
Recommended by over 100k members
Clarification:
By how does LinkedIn Oauth works, we are trying to understand how the "Sign in with Google" and "Sign in with FB" works at LinkedIn Home page?
Yeah, that is what we are trying to understand.
Great, next shall I take any one of the lot as both are gonna be similar in terms of how it does and what it does.
So here I'm going to consider the "Sign in with google". Cool
So, Oauth is Open Standard Authorization ProtocolProtocol or Framework that provides applications the ability for Secure Designated Access. So, in our case at an high level, LinkedIn is given the access by Google to get basic info of the user like their name, age, and other few things. The access are not given by sharing the password. It is basically gives an authorization token to prove an identity between consumer and service provider. The reason of not sharing the password here is that once Li is breached, we can be happy that the password of our Google account will not be known to thr perpreators.
So here me, Lokesh(User) wants LinkedIn (Consumer) to consume information from Google(Service Provider). Thus these are the 3 people involved in the Oauth process.
Step1 :User shows Intent
Lokesh:User asks the consumer to collect/verify the details needed through Google.
LinkedIn: Sure, I'll go get Permission
Step2: The consumer gets permission
LinkedIn: I have a user that would want me to check their basic details and open a account with me
Google: Awesome, here's a token and secret
The secret here is used to prevent request forgery.The consumer uses the secret to sign each request so that the service provider can verify that the request actually comes from the consumer application.
Step3: The user is redirected to the Service Provider
LinkedIn: Okay, Lokesh. So im taking you to Google. Please approve the request using the token.
Lokesh: Cool!
Step4: The user gives permission
Lokesh: Google, I would like you to authorize this token that LinkedIn gave me.
Google: okay, just to be sure, you want LinkedIn to access your Name, Age, Gender with your Google account
Lokesh: Yup
Google: Okay, you can go back to LinkedIn and tell them they have the permission.
Google will now mark the request as good to go. So when consumer aka LinkedIn requests access, it will be accepted
Step5: The Consumer Obtains an access token
LinkedIn: Google, Can I exchange this req token for an access token
Google: sure, here's your access token and secret.
Step6: The Consumer accesses thr Protected info
LinkedIn: I'd like to view the information. Here's my access token.
Google: Here it is...
So, in our scenario Lokesh never gave the credentials to LinkedIn. He simply delegates access using OAuth in a secured manner. At anytime Lokesh can log into Google, review the given access and can revoke it if needed.
So this is how the OAuth functions and helps user share LinkedIn the needed information without sharing Password
Top Linkedin interview questions
- Estimate the number of Uber rides.30 answers | 51.3k views
- How will you improve engagement on LinkedIn?14 answers | 14.2k views
- Design a product for job seekers to create resumes and find the best matching jobs easily and quickly.11 answers | 11.7k views
- See Linkedin PM Interview Questions
Top Technical interview questions
- Imagine you're the product manager for Facebook Marketplace. Since many sellers don't mark items as sold, what existing functionality and metrics could you use to determine whether an item has likely sold?7 answers | 20.9k views
- What happens when you enter a URL in your browser?6 answers | 10.8k views
- How does TinyURL work?5 answers | 317k views
- See Technical PM Interview Questions
Top Linkedin interview questions
- How many elevators should an average office building have?8 answers | 37.1k views
- Consider there is a company say LinkedIn. Which are the top three metrics you would see first thing in the morning?7 answers | 5.1k views
- Should Google get into the ticketing market? If so, what would you build?7 answers | 6.9k views
- See Linkedin PM Interview Questions
Top Technical interview questions
- How would you determine how to rank posts in the newsfeed?4 answers | 3.3k views
- The Chrome team is looking to reduce power utilization on mobile phones when using the browser. How would you go about solving this problem?3 answers | 3.7k views
- Create an API design for third-party integration for payments.3 answers | 4.2k views
- See Technical PM Interview Questions