Skip to content
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

callback url for mobiles? #28

Closed
edoardoc opened this issue Jul 15, 2020 · 10 comments
Closed

callback url for mobiles? #28

edoardoc opened this issue Jul 15, 2020 · 10 comments
Labels
FAQ List of questions that can be candidates for documentation post

Comments

@edoardoc
Copy link

Hello,

followed instructions, created linkedin app and updated all the values, whenever I try to login on iOS it says:

flutter: Error description: Scope %26quot%3Br_liteprofile%26quot%3B is not authorized for your application, Error code: 401

on Android:

Webpage not available

The webpage at https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=78wh6qrif629sl&state=79a22362-122d-4a0b-98b2-dbe9cc415060&redirect_uri=https://mywebsite.com/auth/linkedin/callback&scope=r_liteprofile%20r_emailaddress could not be loaded because:

net::ERR_NAME_NOT_RESOLVED

As I understand this should be able to work on mobiles also but maybe I need to set a different type of callback url?
Any help appreciated

@d3xt3r2909
Copy link
Owner

Hi, I will check this in one day probably because currently I am on a trip.

Regarding you question, yes it should work on Android and iOS. It is still not supported, unfortunately, web and desktop because dependency which we are using has some issue.

First tip, please check did you setup everything correctly while you have created LinkedIn app on their page?

@d3xt3r2909 d3xt3r2909 added the question Further information is requested label Jul 15, 2020
@edoardoc
Copy link
Author

the only thing that I am not sure of is the

final String redirectUrl = 'https://app.carde.de';

which, of course I changed, and set it up both in the code and in the app definition on linkedin.
What I am not sure about is how to set up the server of this URL, usually 3 legged auth's protocols on mobile's need you to instantiate an internal server inside the app with a deep linking protocol (so no https but something like mySmallApp://foo_bar_etc/) that you need to code inside the Info.plist (iOS)

@d3xt3r2909
Copy link
Owner

There is nothing like to add to the redirect route, I have even use localhost. That's because everything is handled by APIs from Linkedin and there is no need to have 3 legged like on apple login. I have tried now my example and it's working. Can you also try that?

PS: Did you set up correctly scopes for you LinkedIn app, on their site?

@edoardoc
Copy link
Author

Screenshot 2020-07-16 at 10 44 26

I can't edit that on their site :/

@d3xt3r2909
Copy link
Owner

You should have something like this in your Auth tab

image

@edoardoc
Copy link
Author

yep, I got it now, thank you a lot :)

@d3xt3r2909
Copy link
Owner

I am planning soon to post an article about this, step by step. It will be easier for you guys :)

@edoardoc
Copy link
Author

What is not really clear is what kind of permission(s) one will get choosing either of the 3 paths on dev.linkedin

Sign in with LinkedIn
Share on LinkedIn
Marketing developer platform

I need to get my list of 1st level connections, basically the people I follow on LinkedIn

@d3xt3r2909
Copy link
Owner

Hi @edoardoc sorry for my late response. Please tag me, so that I can get a notification. I am not sure how to it because this library is just for auth, but I know that ppl had a lot of problems retrieving that information. If I remember correctly, you should apply for Marketing, and there is already a lot of feedback that they are not approving this program so easily.

@edoardoc
Copy link
Author

edoardoc commented Aug 13, 2020

@d3xt3r2909
I applied yesterday and they rejected the application.
Future of APIs is full of applications and rejections I guess :)

UPDATE:
to get permissions:
r_emailaddress
r_liteprofile
w_member_social

you need to apply for
Sign in with LinkedIn
Share on LinkedIn

which are the only ones they will authorize

@d3xt3r2909 d3xt3r2909 added FAQ List of questions that can be candidates for documentation post and removed question Further information is requested labels Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ List of questions that can be candidates for documentation post
Projects
None yet
Development

No branches or pull requests

2 participants