我已将我的 salesforcesdk-ios 更新到新版本 5.3.0。成功登录后,我在这个委托中设置了所有这些值 - oauthCoordinatorDidAuthenticate:authInfo:像这样,
- (void) oauthCoordinatorDidAuthenticate: (SFOAuthCoordinator *) coordinator authInfo:(SFOAuthInfo *)info {
[SFAuthenticationManager sharedManager].coordinator = coordinator;
[[SFAuthenticationManager sharedManager] coordinator].credentials = coordinator.credentials;
[[SFUserAccountManager sharedInstance] applyCredentials:coordinator.credentials];
}
当我尝试验证刷新令牌时,currentUser 为 nil in - (void)send:(SFRestRequest *)request delegate:(id)delegate shouldRetry:(BOOL)shouldRetry并始终加载 salesforce 登录页面而不是向 Salesforce 发送请求。
// 如果没有可证明的身份验证凭据,请在发送前登录。SFUserAccount *user = [SFUserAccountManager sharedInstance].currentUser;
用户始终为零。如何正确设置用户帐户?谢谢!