Oauth 2.0 当调用initializeSessionWithAuthToken时,Box iOS SDK始终返回Box CallbackResponseUserCancelled

Oauth 2.0 当调用initializeSessionWithAuthToken时,Box iOS SDK始终返回Box CallbackResponseUserCancelled,oauth-2.0,box-api,Oauth 2.0,Box Api,使用:Box的OneCloud iOS SDK于2012年12月10日更新 我们自己管理Oauth2身份验证过程,并且能够成功地列出文件并上传它们的新版本,直接调用RESTHTTP请求,如中所述 我们现在想要开始使用SDK,而不必替换所有当前正在工作的代码。如Box.h头文件中所述,我们使用与上述相同的令牌调用initializeSessionWithAuthToken,但它将始终在on.after回调块中返回BoxCallbackResponseUserCancelled 从Box.h标题开始

使用:Box的OneCloud iOS SDK于2012年12月10日更新

我们自己管理Oauth2身份验证过程,并且能够成功地列出文件并上传它们的新版本,直接调用RESTHTTP请求,如中所述

我们现在想要开始使用SDK,而不必替换所有当前正在工作的代码。如Box.h头文件中所述,我们使用与上述相同的令牌调用initializeSessionWithAuthToken,但它将始终在on.after回调块中返回BoxCallbackResponseUserCancelled

从Box.h标题开始


是否有人成功地使用了此方法或找到了有关返回错误代码的扩展文档?

这可能是因为iOS SDK是根据我们的V1 API构建的,而我们的V1 API不支持OAuth 2。这是一个我们已经意识到的差异,我们正在努力移植iOS SDK以使用V2 API。

这个差异已经解决了吗。据我所知,OAuth2将在今年强制实施,这将打破iOS SDK。v1API直到今年12月才会消失。我们正在争取在下个月左右的某个时候使用V2 API发布iOS SDK的第一个版本。
// You can also use the Box web APIs detailed at http://developers.box.com to implement your own user login.
// If you choose to do that, please call initializeSessionWithAuthToken:callbacks: with the auth token you
// obtain during login to take advantage of the library after authentication.

// If there is already a user logged in, this method is a no-op. No callbacks will be called in that case.
// Otherwise, this method initializes the authenticating user's session. You can expect your callbacks' on.before to
// be called immediately before initialization. on.after will be called upon success or failure of the operation.
// The response argument will be set accordingly.
+ (void)initializeSessionWithAuthToken:(NSString *)authToken callbacks:(BoxOperationCallbacksDefine)callbacks;