Skip to content

Commit

Permalink
Avoid new literal syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
beccadax committed Oct 12, 2012
1 parent ca962e7 commit d1222e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ANAuthenticator.m
Expand Up @@ -112,7 +112,7 @@ - (void)accessTokenForScopes:(NSString *)scopes withUsername:(NSString *)usernam
authRequest.URL = [NSURL URLWithString:@"https://alpha.app.net/oauth/access_token"];
authRequest.method = ANRequestMethodPost;
authRequest.parameterEncoding = ANRequestParameterEncodingURL;
authRequest.parameters = @{@"client_id": self.clientID, @"password_grant_secret": self.passwordGrantSecret, @"grant_type": @"password", @"username": username, @"password": password, @"scope": scopes};
authRequest.parameters = [NSDictionary dictionaryWithObjectsAndKeys:@"password", @"grant_type", self.clientID, @"client_id", self.passwordGrantSecret, @"password_grant_secret", username, @"username", password, @"password", scopes, @"scopes", nil];

[authRequest sendRequestWithRepresentationCompletion:^(ANResponse *response, id rep, NSError *error) {
if (error)
Expand Down

0 comments on commit d1222e7

Please sign in to comment.