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

Authorization Code call fails because of extra characters appended to state parameter. #72

Open
adamcjohnson opened this issue May 26, 2016 · 4 comments

Comments

@adamcjohnson
Copy link
Contributor

The authorization code response contains extra characters appended to the state parameter, which therefore makes the request fail.

I've resolved this issue in: #71

@NickChayka
Copy link

I think, this is not a good idea - use containsString instead isEqualToString.

My solution:

in LIALinkedInAuthorizationViewController.m

line 134:

// urlString = [[urlString componentsSeparatedByString:@"?"] objectAtIndex:1];
urlString = [[NSURL URLWithString:urlString] query];

@santilorenzo
Copy link

Yes, it fixed the error to me too. Can you please make a fork and a PR?
Thank you very much!

@junestchick
Copy link

Did it fixed ?

@zfrankz
Copy link

zfrankz commented Aug 22, 2016

I've made a pull request. All came from the end point used to authenticate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants