-
Notifications
You must be signed in to change notification settings - Fork 429
FAQ
tstellanova-sfdc edited this page Dec 8, 2011
·
6 revisions
SFOAuthCredentials initWithIdentifier:clientId: takes two parameters. What is the purpose of the "identifier" and "clientId" parameters?
The purpose of providing separate identifier and clientId parameters is that you can (potentially) allow the user to switch between user accounts on the same instance. Many applications will only allow one user login for the app: in this case you can simply provide a default value for identifier, eg:
SFOAuthCredentials *credentials = [[[SFOAuthCredentials alloc] initWithIdentifier:@"MyIdentifier" clientId:remoteAccessConsumerKey] autorelease];