¿Iniciar sesión en la API de Salesforce en iPhone?
Estoy usando la API de Salesforce y quiero iniciar sesión automáticamente (nombre de usuario y contraseña de código fijo). Estoy usando REST API y aquí está el código de inicio de sesión que muestra el formulario de inicio de sesión:
- (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];
}
¿Qué quiero, para iniciar sesión automáticamente (no preguntar nombre de usuario o contraseña), de modo que donde inserte el nombre de usuario y la contraseña?