-
Notifications
You must be signed in to change notification settings - Fork 147
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 failed Error Domain=LIALinkedInERROR Code=2 #78
Comments
for anyone else who got the same problem, i found it's Linkedin append an anchor to redirect_url. And
|
fix is quite straight forward as well - (NSString *)extractGetParameter: (NSString *) parameterName fromURLString:(NSString *)urlString {
NSMutableDictionary *mdQueryStrings = [[NSMutableDictionary alloc] init];
urlString = [[urlString componentsSeparatedByString:@"#"] objectAtIndex:0];
urlString = [[urlString componentsSeparatedByString:@"?"] objectAtIndex:1];
for (NSString *qs in [urlString componentsSeparatedByString:@"&"]) {
[mdQueryStrings setValue:[[[[qs componentsSeparatedByString:@"="] objectAtIndex:1]
stringByReplacingOccurrencesOfString:@"+" withString:@" "]
stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
forKey:[[qs componentsSeparatedByString:@"="] objectAtIndex:0]];
}
return [mdQueryStrings objectForKey:parameterName];
} |
@Arthraim solution works for me |
I am using latest sdk . It is using LinkedIn app for authorization process. I m getting the same error LIALinkedInERROR Code=2 only at iOS 10 phones. Its working fine for iOS 9 and even 11 too. Your above method is not available for alter. Please suggest any other possible solution to fix it. |
After click "Sign in" on login page (the webview), I got this error, it effects all our app users. The example project in your repo doesn't work either.
The text was updated successfully, but these errors were encountered: