简体   繁体   English

Gigya API 保留浏览器登录详细信息

[英]Gigya API keeps browser login details

I'm having issue in clearing logged in details.我在清除登录的详细信息时遇到问题。 actually i'm running test suit where multiple test scenario are there.实际上我正在运行测试套件,其中有多个测试场景。 on each test scenario run i'm clearing the browser cookies and session related information by using await browser.executeScript('window.localStorage.clear();'); await browser.executeScript('window.sessionStorage.clear();'); await browser.driver.manage().deleteAllCookies();在每个测试场景运行中,我使用await browser.executeScript('window.localStorage.clear();'); await browser.executeScript('window.sessionStorage.clear();'); await browser.driver.manage().deleteAllCookies();清除浏览器 cookie 和会话相关信息await browser.executeScript('window.localStorage.clear();'); await browser.executeScript('window.sessionStorage.clear();'); await browser.driver.manage().deleteAllCookies(); and i checked that cookies and session are getting cleared after every scenario i run.我检查了在我运行的每个场景后 cookie 和会话是否被清除。 but the things is it's not cleared the browser logging details which i enter the earlier.但事情是它没有清除我之前输入的浏览器日志记录详细信息。 for an example i run the first test scenario in that i enter system logged in into the system but when it's got complete i cleared it out the all the stuff.举个例子,我运行第一个测试场景,我进入系统登录到系统,但是当它完成时,我清除了所有的东西。 but as soon as i start running second scenario it skipped the login step.但是一旦我开始运行第二个场景,它就跳过了登录步骤。 did some research and somethings found that, user is logged in or not this status comes from GIGYA .做了一些研究,发现用户是否登录,这个状态来自 GIGYA 。 when we clear down the cookies and cache from browser setting it will logged out the user当我们从浏览器设置中清除 cookie 和缓存时,它将注销用户

now i'm looking the solution is how to clear it out.现在我正在寻找解决方案是如何清除它。

Gigya session relays in a cookie named glt_<API-KEY> - if that cookie get deleted, the session is lost, and the Gigya Web SDK won't be able to proxy calls to the Gigya API to perform actions such as updating the profile. Gigya 会话在名为glt_<API-KEY>的 cookie 中中继 - 如果该 cookie 被删除,会话将丢失,并且 Gigya Web SDK 将无法代理对 Gigya API 的调用以执行更新配置文件等操作.

The user data is not stored in any cookie, and therefore is not necessary to do that cleanup task, only the session token is stored in a cookie.用户数据不存储在任何 cookie 中,因此不需要执行该清理任务,只有会话令牌存储在 cookie 中。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM