I am trying to provide get access to LinkedIn data in a Spring-based web application.The idea is to connect to a LinkedIn account, get LinkedIn data(education or employer information for argument sake) & show that data on my application's page. Now I studied a bit on Spring Social OAUTH abstraction for LinkedIn(using spring-social-linkedin) and also read some code samples for accessing data but I am still unable to wrap my head around this flow and how do I write the code for my specific purpose?
Do I create a specific web page where user put's in his LinkedIn login details and the ConnectController (already intialized in IOC container) will then take care of the connection?
If so what will be the action & method values on the Login page?
If no login page is to be created, how will LinkedIn account details be inputted by user and How will ConnectController get the account details to authenticate?
Once authenticated, how to navigate through user's data?
If someone can explain in a step-by-step manner how to approach my requirement here,would really appreciate it.
Related
We are integrating the Linkedin Oauth into our software and would like to retrieve the “vanityname” value from the user account in order to display it in our UI (so the user knows which linkedin account they connected to).
Currently the vanityname seems to be only available for "Basic" profile, but our App only has access to "Lite". We looked everywhere but cannot find a way to request this permission specifically, or request access to “Basic” profile info;
Could you let me know how/where to apply for this permission? I am happy to provide the full usecase and flow of course.
I have created a B2C tenant with an user flow that contain a linkedin way for connect.
In my ASP.NET website, i want to display linkedin's informations of the user connected.
In my research, i have seen different way to make this but it is possible only with custom policy and i need to know if in 2020, there is a solution or not, to get user info by linkedin.
Thank you in advance.
Sounds like passing an access token through a user flow to your application can be useful. With the access token the application will be able to call the LinkedIn API directly.
I am going over to a Wordpress and my WP plugin is asking me about "Authentication Code" And I have no idea where to find it.
Without the plugin name it is hard for me to determine what specific authentication code is needed, so I'll assume that you mean the OAuth Client ID. Please, forgive me if I am mistaken. You can generate a new OAuth Client ID following this steps:
Open Google Cloud Console and select your project.
Go to Navigation menu ⮞ APIs & Services ⮞ Credentials.
Select +Create credentials ⮞ OAuth client ID at the top.
You'll be prompted to select an application type. In case of a Wordpress plugin you need to choose Web application and give it a descriptive name.
Click on +ADD URI and include your webpage URL. This action will whitelist your webpage to authorize this OAuth client.
Tick Create to finish the process and annotate your client ID and secret.
With this procedure you would have created an OAuth client ID and its secret. Now we can take this client/secret pair and use it to request an authorization code over some Calendar API scopes.
After getting an authorization code, you can ask Google to exchange it for a pair of refresh and access tokens that you can use on every call to the Calendar API.
Following these steps you would have created every authentication code possible, you just need to determine which one is the required for that specific plugin. Please, don't hesitate to ask me any additional doubts.
Asking the question here as the linkedin help forum directed to post things related to API on stackoverflow.
I am developing a feature on our org website to show the top 5 company page feeds setup in linkedin. Ive already setup the required access in developer.linkedin and the whole flow works in the developer.linkedin REST console to fetch the feed.
I am currently recieving this error when i try from my machine to fetch the auth token with a valid client id and secret created.
https://www.linkedin.com/oauth/v2/accessToken?grant_type=client_credentials&client_id=OMITTED&client_secret=OMITTED
{
"error": "access_denied",
"error_description": "This application is not allowed to create application tokens" }
The documentation also mentions that this flow isn't available by default and the users will need to contact linkedin.
https://developer.linkedin.com/docs/v2/oauth2-client-credentials-flow
"By default, your application will not have the ability to use LinkedIn's client credentials flow. Contact us to have your application granted permission to use this flow."
What would be the next steps in requesting access to this flow for my org?.
As outlined here:
By default, your application will not have the ability to use LinkedIn's client credentials flow. Contact us to have your application granted permission to use this flow.
The next step would be to contact them directly or Apply to become a Partner
and if accepted you'll be granted access to additional data outside of the scope of the user authentication flow (which basically means you'll be able to make calls directly from your application to access certain information)
I think the answer is well explained by API-University, since the creation of an application in order to get the access_token, will solve the communication issue.
Link to the explanation: https://api-university.com/blog/api-usage/how-to-use-the-linkedin-api-and-oauth/
I am implementing Facebook login on my website. I am creating an asp.net user as well with the Facebook users details. This way I can control login in people to my site using .NET membership regardless of whether they are a Facebook user or not.
The problem I am facing now is security. When a user logs in with Facebook I am calling a webservice with their facebook details, if the user exists on the system (by their facebook userid) then I log them in. However as it stands anyone could call the webservice with someone elses facebook id and it would log them in (if that user existed on the system). Is there something that I can use to link the facebook user with my asp.net user that is only accessible to that user, such as an access token. It also needs to be something which does not change? Does facebook send back such a thing in the response object?
Any help or suggestions are much appreciated.
Thanks
Yes, we can get that profile data from Facebook. Using that requestAccessToken Url you can get that access token.
requestAccessTokenurl="https://graph.facebook.com/oauth/access_token?client_id={0} redirect_uri={1};client_secret={2};code={3}"
Also we can get the Profile Data using this access token
requestProfileUrl="https://graph.facebook.com/me"
please see this link- http://easyoauth.codeplex.com/
you can download the source code also :)
We have implemented for Facebook, Twitter, LinkedIn, Google using this framework. It is very straight forward. I can help you how to do this.
Thanks