From d1222e7866bbd18917235f97ffe1ebb451e453e1 Mon Sep 17 00:00:00 2001 From: Brent Royal-Gordon Date: Fri, 12 Oct 2012 15:13:16 -0700 Subject: [PATCH] Avoid new literal syntax --- ANAuthenticator.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ANAuthenticator.m b/ANAuthenticator.m index 79e23ee..f8021dc 100644 --- a/ANAuthenticator.m +++ b/ANAuthenticator.m @@ -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)