Я использую Salesforce api и хочу войти в систему автоматически (имя пользователя и пароль с жестким кодом).Я использую REST API, и вот код входа, который показывает форму входа:
- (void)login {
SFOAuthCredentials *credentials = [[[SFOAuthCredentials alloc] initWithIdentifier:remoteAccessConsumerKey] autorelease];
credentials.protocol = @"https";
credentials.domain = OAuthLoginDomain;
credentials.redirectUri = OAuthRedirectURI;
self.coordinator = [[[SFOAuthCoordinator alloc] initWithCredentials:credentials] autorelease];
self.coordinator.delegate = self;
NSLog(@"%@",self.coordinator);
// remove this line if we want to cache the key, and use refresh flow
//effectively, we are saying, purge the old login and re-authenticate each time
[self.coordinator revokeAuthentication];
//now let's authenticate
[self.coordinator authenticate];
}
Что я хочу, чтобы автоматически входить в систему (не спрашивая имя пользователя или пароль), так где я вставляю имя пользователя и пароль?