I am using Salesforce api and I want to automatically log in (hardcode name and password). I am using the REST API, and here is the login code that shows the login form:
- (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);
What do I want for automatic login (do not ask for a username or password), where do I insert a username and password?
source share