LinkedInSignIn | Simple view controller to log in and retrieve an access | Authentication library
kandi X-RAY | LinkedInSignIn Summary
kandi X-RAY | LinkedInSignIn Summary
Simple view controller to log in and retrieve an access token from LinkedIn.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of LinkedInSignIn
LinkedInSignIn Key Features
LinkedInSignIn Examples and Code Snippets
Community Discussions
Trending Discussions on LinkedInSignIn
QUESTION
I am building and api to include linkedin login in Angular. I used the doc of Linkedin here to do it step by step : https://docs.microsoft.com/fr-fr/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context
I console.log the url to send to have the token, everything is fine but i still have: "Cannot read property 'post' of undefined". All the informations are find in the url sent by post to fetch the result.
...ANSWER
Answered 2019-Sep-04 at 01:02I guess you are losing context. try this
QUESTION
I am doing signup with linkedin and need to fetch access code and basic profile details. But when I post the request, I am getting CORS error in my console, when I hit the URL directly in browser, it takes me to the signin page correctly. What would be the problem hitting the request?
CORS issue resolved:
I found localhost:4200 does not had '/' and after including it , CORS error was resolved , but hitting my http.get is having a problem component:
...ANSWER
Answered 2018-Sep-05 at 09:35EDIT :
You need not require to map
your response object from http.get()
. It is automatically done by new angular6 http
.
So it should be this way :
this.http.get(authURL).subscribe((res:any)=> {console.log("Http Get " + res); });
Original answer related to CORS
:
As suggested in that answer, try to invoke linkedIn api
from your backend api and not from the browser directly. This will solve your Cross origin
related problem.
Linkedin
will directly not allow any third application to execute its api
. It has to be from your backend api
itself and not the browser.
QUESTION
I tried with this pods => 'LinkedinSwift', '~> 1.6.6' pod It worked perfectly in the simulator but not work in real devices.. (Buy clicking button nothing happens even error log is not generated in device).
Here I attached the snap of simulator screen in which works fine.
and after login, I get the proper response like this.
Response
...ANSWER
Answered 2018-Apr-11 at 07:45In my device LinkedIn App install
So 'LinkedinSwift', '~> 1.6.6' framework automatically sign-in via App and after that It can't getUser Profile (may be this is bug).
So I do customised the framework code and changed it, like in way it always open WebView and then I logout manually after getting profile data. Finally I solve this issue.
In this main support of @iTag. That guy help me a lot so I can able to solve this issue. Thanks every one to put your effort and specially thanks for @iTag.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LinkedInSignIn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page