草庐IT

remember_token

全部标签

ios - 存储 OAuth token iOS 的最佳方式?

我正在编写一个使用Twitch.tv'sAPI的iOS应用程序允许我的应用程序访问他们的用户内容。他们使用OAuth2.0协议(protocol)进行身份验证。每次发出访问用户信息的请求时,我都需要使用此访问token。我的问题是我应该把它存放在哪里?我应该创建一个将它作为属性的类吗?在该类(class)中,我还可以存储我的重定向URI和Client_ID以将所有内容保存在一个地方。我考虑过NSUserDefaults,但我读到它不是很安全。这种方法在iOS上的最佳设计模式是什么?谢谢。 最佳答案 您问题的措辞方式似乎混淆了单词st

java - Spring Boot启动时抛出 "method names must be tokens"异常

SpringBoot启动时抛出methodnamesmustbetokens异常2016-08-1116:53:54.499INFO14212---[0.1-8888-exec-1]o.apache.coyote.http11.Http11Processor:ErrorparsingHTTPrequestheaderNote:furtheroccurrencesofHTTPheaderparsingerrorswillbeloggedatDEBUGlevel.java.lang.IllegalArgumentException:Invalidcharacterfoundinmethod

java - Spring Boot启动时抛出 "method names must be tokens"异常

SpringBoot启动时抛出methodnamesmustbetokens异常2016-08-1116:53:54.499INFO14212---[0.1-8888-exec-1]o.apache.coyote.http11.Http11Processor:ErrorparsingHTTPrequestheaderNote:furtheroccurrencesofHTTPheaderparsingerrorswillbeloggedatDEBUGlevel.java.lang.IllegalArgumentException:Invalidcharacterfoundinmethod

iphone - 将 AFIncrementalStore 与 Auth token 一起使用

我正在为App.net开发一个iOS客户端,我想使用AFIncrementalStore将Web服务与我在应用程序中的核心数据实现同步。我已经让这两个用于不需要身份验证token的API请求,但我不知道如何将身份验证token与AFIncrementalStore一起使用。换句话说,我可以拉下全局提要,因为它不需要身份验证:https://alpha-api.app.net/stream/0/posts/stream/global...但是,要获取用户的流,您需要授权(您会注意到此链接会出错):https://alpha-api.app.net/stream/0/posts/strea

ios - Apple 推送通知 - 从生产应用程序获取空推送 token - 将在修复配置文件问题后发送推送 token

我们在iPhone应用程序中添加了接收推送通知。一切都在测试/沙盒环境中运行,我们从应用程序获取tokenID,并可以从我们的服务器发送推送通知。但现在该应用程序已获批准并从Appstore出来,我们收到发送到我们服务器的空推送token/通知ID。我们已经有超过600个...请注意,最终用户确实会收到弹出窗口以批准在应用程序中接收通知,应用程序只是在批准后向我们的服务器发送空token。所以可能空token是由APNS服务器分发的。以下问题向我们表明,这可能是由于我们用于为应用商店构建的配置文件中缺少“推送通知”权利:HowdoIcheckifaniOSdistributionpro

ios - Dropbox 同步 API 访问 token

当我使用核心API时,我只是使用代码[dbsessionupdateAccessToken:@"..."accessTokenSecret:@"..."forUserId:@"..."];从应用程序的任何副本访问我的保管箱帐户。但现在我发现这个新的SyncAPI更简单、更灵活,但我没有找到上面显示的代码的任何等效项。现在是:DBAccountManager*accountMgr=[[DBAccountManageralloc]initWithAppKey:@"..."secret:@"..."];[DBAccountManagersetSharedManager:accountMgr]

ios - AFHTTPClient 将授权 header 字段设置为 "Token token='\75845hjhrtje84539574 8' "但我只想成为里面的 token

我目前正在尝试使用AFNetworking实现授权。我试图将access_token放在HTTP-Authorizationheader中。但是到达服务器的是这样的:Tokentoken="\fdasfjhalsfh4546"应该只是Header里面的token-value。我的代码如下所示:-(void)setAuthTokenHeader{CredentialStore*store=[[CredentialStorealloc]init];[selfsetAuthorizationHeaderWithToken:[storeauthToken]];}[storeauthToken]

iphone - 必须使用事件访问 token 来查询有关当前用户的信息

我正在尝试获取用户详细信息,但目前无法获取图像。这是我遇到的错误:{error={code=2500;message="Anactiveaccesstokenmustbeusedtoqueryinformationaboutthecurrentuser.";type=OAuthException;};}这是我的代码:if(!self.store){ACAccountStore*store1=[[ACAccountStorealloc]init];self.store=store1;[store1release];}ACAccountType*fbAccountType=[storeac

ios - Apple 推送通知服务设备 token

我在我的应用程序中使用了苹果推送通知服务。我知道从Apple服务器发送的设备token对于设备是唯一的。如果我卸载我的应用程序并再次安装它注册推送服务,对于同一应用程序的该设备,该设备token是否会保持不变?Apple如何为设备生成设备token? 最佳答案 引自ApplesLocalandPushNotificationProgrammingGuideByrequestingthedevicetokenandpassingittotheprovidereverytimeyourapplicationlaunches,youhel

php - 将 APNS 推送通知发送到 PHP 中的多个设备 token 时出现问题

我在实现PHPAPNS推送通知方面需要帮助。我在向多个设备token发送通知时遇到问题。对于单个设备token,它运行良好。以下是我的代码。任何帮助将不胜感激//password:$passphrase='1234';//Putyouralertmessagehere:$message='NewMessage';////////////////////////////////////////////////////////////////////////////////$ctx=stream_context_create();stream_context_set_option($ctx