From a8a2eed19124981ffe3ff65068de9c9dec868425 Mon Sep 17 00:00:00 2001 From: Francisco Montoro Date: Mon, 22 Aug 2016 15:08:32 +0100 Subject: [PATCH 1/2] Updated authentication endpoint which was causing an error when trying to authenticate (returned state had some extra chars at the end) --- IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m b/IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m index 7fa273e..5a1a4bb 100644 --- a/IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m +++ b/IOSLinkedInAPI/LIALinkedInAuthorizationViewController.m @@ -73,7 +73,7 @@ - (void)viewDidLoad { - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; - NSString *linkedIn = [NSString stringWithFormat:@"https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=%@&scope=%@&state=%@&redirect_uri=%@", self.application.clientId, self.application.grantedAccessString, self.application.state, [self.application.redirectURL LIAEncode]]; + NSString *linkedIn = [NSString stringWithFormat:@"https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=%@&scope=%@&state=%@&redirect_uri=%@", self.application.clientId, self.application.grantedAccessString, self.application.state, [self.application.redirectURL LIAEncode]]; [self.authenticationWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:linkedIn]]]; [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; } From 277fa28841c56f55b02c353529bca96177175249 Mon Sep 17 00:00:00 2001 From: Francisco Montoro Date: Mon, 22 Aug 2016 15:17:44 +0100 Subject: [PATCH 2/2] changed pod version number --- IOSLinkedInAPI.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IOSLinkedInAPI.podspec b/IOSLinkedInAPI.podspec index e4f1a75..50a083f 100644 --- a/IOSLinkedInAPI.podspec +++ b/IOSLinkedInAPI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'IOSLinkedInAPI' - s.version = '2.0.0' + s.version = '2.0.1' s.license = 'MIT' s.summary = 'IOS LinkedIn API capable of accessing LinkedIn using oauth2. Using a UIWebView to fetch the authorization code.' s.homepage = 'https://github.com/jeyben/IOSLinkedInAPI'