简体   繁体   English

如何在使用授权代码流时让用户保持用户登录 RingCentral?

[英]How can I keep user keep user logged in RingCentral while using Authorization code flow?

In web phone call, I am using Authorization flow.在网络电话中,我使用的是授权流程。 Currently, On page load, I have called URL for an authorization code and after that user will be logged and perform Inbound and Outbound call operations.目前,在页面加载时,我已调用 URL 获取授权代码,然后该用户将被登录并执行入站和出站呼叫操作。 But when the user opens a new tab, the user need to generate authorization code and login.但是当用户打开一个新选项卡时,用户需要生成授权码并登录。 I am not able to store any credentials in the database as well.我也无法在数据库中存储任何凭据。 so please let me what way I can prevent login process again and again.所以请让我有什么方法可以一次又一次地阻止登录过程。

Without knowing more about how your application code is structured, it is difficult to answer this question properly.如果不了解更多关于您的应用程序代码的结构,就很难正确回答这个问题。 It is much easier to answer questions here which have code you've implemented or have tested to solve the problem.在这里回答问题要容易得多,这些问题具有您已实现或已测试以解决问题的代码。 If you could provide that, it would help.如果你能提供那个,它会有所帮助。

In the meantime, could you store access_token in LocalStorage?同时,您能否将access_token存储在 LocalStorage 中? Then if the user opens a new tab, your app can use the existing token in localStorage?那么如果用户打开一个新选项卡,您的应用程序可以使用 localStorage 中的现有令牌吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让用户使用Implicit流程登录? - How do I keep the user logged-in with Implicit flow? RingCentral API用户联系端点授权 - RingCentral API User Contact Endpont Authorization 使用RingCentral PHP SDK生成使用授权码流并订阅状态事件的应用 - Using RingCentral PHP SDK to build app that uses Authorization Code flow and subscribes to presence events 为什么我不应该在OAuth 2.0的移动应用中保留client_secret(授权代码授予流程) - Why I shouldn't keep client_secret in mobile app in OAuth 2.0 (authorization code grant flow) 授权端点如何知道用户已登录? - How authorization endpoint knows user is logged in? 授权代码流还是将oauth用户与内部用户匹配的隐式? - Authorization Code Flow or Implicit to match a oauth user to an internal user? 使用OAuth 2.0授权代码流识别浏览器(用户代理)会话 - Identifying browser (User agent) session with OAuth 2.0 Authorization Code Flow 无需用户干预即可进行 OAuth 2 授权代码授予/流程 - Make OAuth 2 Authorization Code Grant/Flow without user intervention 本地state清除后授权码流程如何记住用户? - How does Authorization Code flow remember the user after local state is cleared? 授权代码授予:当用户不在时如何获取访问令牌? - Authorization Code Grant: how can I get an access token when the user is not present?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM