简体   繁体   English

数字资产链接验证与 SSL 客户端证书

[英]Digital asset links verification with SSL client certificates

I have a web app, which is accessible over https, but requires ssl client cert to access any data on the app domain.我有一个 web 应用程序,可通过 https 访问,但需要 ssl 客户端证书才能访问应用程序域上的任何数据。

I want to convert it to a TWA, but I have a problem with the address bar, which is not hiding on first app launch.我想将其转换为 TWA,但地址栏有问题,它在首次应用启动时没有隐藏。 The thing is that during first launch assetlinks.json file is not accessible until the user selects a certificate to use.问题是,在首次启动期间,assetlinks.json 文件在用户选择要使用的证书之前无法访问。 After choosing a certificate and killing the TWA app (but not killing chrome) and then launching the app again, everything works fine and the address bar is hidden.选择证书并终止 TWA 应用程序(但不终止 chrome)然后再次启动该应用程序后,一切正常,地址栏被隐藏。

Is there any way to delay the assetlinks verification until the user selects a cert?有什么方法可以延迟资产链接验证,直到用户选择证书? Another way, which I did think of was to restart the whole TWA app somehow from on-page javascript code (it should be possible to detect if a user just selected a certificate by using cookies with expiration set to 'Session'), but I didn't find any information about restarting TWA/PWA apps from on-page code.我确实想到的另一种方法是从页面上的 javascript 代码以某种方式重新启动整个 TWA 应用程序(应该可以通过使用到期设置为“会话”的 cookies 来检测用户是否刚刚选择了证书),但是我没有找到有关从页面代码重新启动 TWA/PWA 应用程序的任何信息。

Unfortunately, it's not currently possible to delay the assetlinks.json generation.不幸的是,目前无法延迟assetlinks.json生成。

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

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