草庐IT

Acs-Token

全部标签

ios - 使用第 3 方 OAuth token 在自定义用户数据库中创建用户对象?

我们正在创建一个用户可以登录的服务(目前为后端+iOS应用程序)。我们已经完成了我们自己的基于token的自定义登录系统并进行了注册。我们现在正在尝试实现他们可以选择“通过Facebook登录”或“Twitter”等的功能(即不使用我们的用户名和密码自定义注册)我们已经成功实现了客户端功能,但是我们从第3方服务(Facebook)收到的只是一个token,以及用户的基本信息。要使用我们的服务,(当然)需要在我们的服务器上注册一个适当的CustomUser对象(我们自己的),这通常会在我们的自定义注册中创建。通过第3方服务登录时,我们应该如何为该外部身份验证的用户创建CustomUser

ios - 0Auth2 : when do you use the refresh token to get a new access token? 过期前还是过期后?

我正在开发一个用于我的IOS应用程序的API,我很好奇在oAuth2中使用刷新token的最佳实践。我正在使用用户密码授权来生成访问token和刷新token。如果token每60分钟过期,那么这意味着客户端每60分钟必须进行3次连续的API调用:1.使用访问token从API获取资源,2.api响应无效token,因此我们需要使用刷新token,3.现在token已刷新,我们需要再次尝试初始调用。那么,我想知道的是,最好在token过期之前刷新它吗?还是在API响应token过期错误后生成新的访问token更好? 最佳答案 不确定

ios - Quickblox iOS SDK 使用 Facebook 访问 token 登录无效

我使用的是最新的Quickblox2.3.0.4我无法使用Facebook访问token登录。[QBRequestlogInWithSocialProvider:@"facebook"accessToken:[FBSDKAccessTokencurrentAccessToken].tokenStringaccessTokenSecret:nilsuccessBlock:^(QBResponse*response,QBUUser*user){NSLog(@"qbloginsucceed");}errorBlock:^(QBResponse*response){NSLog(@"qblogi

found character ‘@‘ that cannot start any token. (Do not use @ for indentation) -springboot启动报错

.......Causedby:org.yaml.snakeyaml.scanner.ScannerException:whilescanningforthenexttokenfoundcharacter'@'thatcannotstartanytoken.(Donotuse@forindentation)in'reader',line3,column13:active:@profileActive@^......1、改一下active:@profileActive@为active:'@profileActive@'试试2、maven重新编译一下,切换配置文件编译一下3、打开编辑器中项目的下面

报错/ ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2)怎么解决?

 ERROR Failedtocompilewith1errors                                                                                    10:52:35 error in./node_modules/axios/lib/platform/index.jsModuleparsefailed:Unexpectedtoken(5:2)Youmayneedanappropriateloadertohandlethisfiletype.| |exportdefault{| ...utils,| ...pla

ios - 在 ios 中获取 token 时遇到问题

当我在我的电脑上运行应用程序时,我在获取token时遇到了问题。当我在MacBook上运行我的应用程序时,它工作正常。这是错误:"Access-Control-Allow-Origin"="*";"Cache-Control"="no-cache";Connection="keep-alive";"Content-Length"=37;"Content-Type"="application/json;charset=utf-8";Date="Mon,11Jul201609:27:28GMT";"QuickBlox-REST-API-Version"="0.1.1";Server="ng

ios - 撤销 token 后 Google SignIn 崩溃

我正在使用Google驱动器来允许服务器访问我的驱动器。我使用SignIn为传递给它的服务器获取token,以便它可以访问驱动器。我可以正常登录该应用程序,它请求相应的云端硬盘权限。问题是当我撤销我之前授予使用登录权限的应用程序访问云端硬盘时崩溃。***-[GSDK_GTMSessionFetcherServicefetcherWithRequest:]:messagesenttodeallocatedinstance0x7ff2706c8440知道是什么导致了这种情况发生。我找不到解决方案。由于pod将代码作为框架分发,因此我无法轻松使用该代码。我使用的是GoogleSignIn4.

ios - iOS 上的 Google OAuth 2 隐式流程,手动刷新 token

您好,我的GoogleOAuth2显式流程根据:https://developers.google.com/identity/protocols/OAuth2WebServer我还有在iOS上使用GIDSignIn的隐式流程,特别是我得到了GIDSignInDelegate::sign(_signIn:GIDSignIn!,didSignInForuser:GIDGoogleUser!,withErrorerror:Error!)回调并有权访问user.authentication.accessToken和user.authentication.refreshToken。我正在尝试将r

ios - 将 token 发送到后端 strip objective-c

我似乎找不到将我的token发送到我的firebase后端的代码。-(void)addCardViewController:(STPAddCardViewController*)addCardViewControllerdidCreateToken:(STPToken*)tokencompletion:(STPErrorBlock)completion{[selfsubmitTokenToBackend:tokencompletion:^(NSError*error){if(error){completion(error);}else{[selfdismissViewControlle

ios - PkPaymentAuthorizationViewController didAuthorizePayment 不返回 token 值

我正在使用applePay,一切正常。它在模拟器的沙盒环境中启动(我国的设备不支持),点击passCode付款后,将进入PasskitdidAuthorizeViewController的委托(delegate)方法。这是我的代码funcpaymentAuthorizationViewController(_controller:PKPaymentAuthorizationViewController,didAuthorizePaymentpayment:PKPayment,completion:@escaping(PKPaymentAuthorizationStatus)->Void