Answer the question
In order to leave comments, you need to log in
How to set up OAuth2 authorization from LinkedIn in Angular 5?
Good day, help me set up user authorization using LinkedIn. The essence of the problem: the user is on the main page, there is a button, the user clicks on it and the linkedin window opens for him with a request to accept the conditions and give access to his profile information and he is redirected to another page. Following the documentation with making a GET request
https://www.linkedin.com/oauth/v2/authorization?response_type=code
&client_id=86yqrscskh1acr&redirect_uri=http://localhost:4200&state=DCEeFWf45A53sdfKef424&scope=r_basicprofile
$.ajax({
type: 'GET',
url: url,
header: { 'Access-Control-Allow-Origin:': '*' },
success: function (resp) {
console.log('Data RESP: ', resp);
},
error: function (error) {
console.log('ERROR RESP: ', error);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question