草庐IT

token_storage

全部标签

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

ios - 重新生成 iOS APNS 证书;设备 token 受影响?

我的iOSAPNS证书已过期,我们(我们的iOS开发人员和我)最终通过iTunesConnect撤销了旧证书,并在遇到一些问题后完全重新开始。现在一切正常,我能够向我们的设备发送测试通知。但是,我们必须在任何通知通过之前重新生成设备token。我认为这个问题是因为我们的设备之前使用的是应用程序的开发版本(不同的token),而我们试图使用生产token。有谁知道(并且可以通过文档进行备份)设备token是否会通过撤销/重新创建我们的APNS证书而持续存在?否则,我将不得不删除所有现有token并等待用户重新打开应用。 最佳答案 如您