Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changes for the latest draft spec.

  • Loading branch information...
commit 243d4bfc5eb8fd08d7549050bc8fe636f1bde9cc 1 parent ea80e95
@lukeredpath authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Classes/LROAuth2Client.m
View
8 Classes/LROAuth2Client.m
@@ -78,10 +78,10 @@ - (void)verifyAuthorizationWithAccessCode:(NSString *)accessCode;
isVerifying = YES;
NSDictionary *params = [NSMutableDictionary dictionary];
- [params setValue:@"web_server" forKey:@"type"];
+ [params setValue:@"authorization_code" forKey:@"grant_type"];
[params setValue:clientID forKey:@"client_id"];
- [params setValue:[redirectURL absoluteString] forKey:@"redirect_uri"];
[params setValue:clientSecret forKey:@"client_secret"];
+ [params setValue:[redirectURL absoluteString] forKey:@"redirect_uri"];
[params setValue:accessCode forKey:@"code"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:self.tokenURL];
@@ -106,10 +106,10 @@ - (void)refreshAccessToken:(LROAuth2AccessToken *)_accessToken;
accessToken = _accessToken;
NSDictionary *params = [NSMutableDictionary dictionary];
- [params setValue:@"refresh" forKey:@"type"];
+ [params setValue:@"refresh_token" forKey:@"grant_type"];
[params setValue:clientID forKey:@"client_id"];
- [params setValue:[redirectURL absoluteString] forKey:@"redirect_uri"];
[params setValue:clientSecret forKey:@"client_secret"];
+ [params setValue:[redirectURL absoluteString] forKey:@"redirect_uri"];
[params setValue:_accessToken.refreshToken forKey:@"refresh_token"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:self.tokenURL];
Please sign in to comment.
Something went wrong with that request. Please try again.