微信小程序为什么要放置校验文件?

小程序 文章 2022-01-10 18:00 3937 0 全屏看文

AI助手支持GPT4.0

微信小程序为什么要放置校验文件?Why should the WeChat applet place the verification file?

微信小程序为什么要放置校验文件?

社区的开发者朋友以及微信团队:

你们好!

我有一些问题请教一下:

背景: 本人负责公司 “用户登录和身份验证系统CIAM” 在中国的部分工作,并不直接负责小程序开发。但是很多的小程序开发团队会找到我,要求我放置小程序域名校验文件。由于我负责的这个CIAM系统是工作业务的基础,几乎所有和终端用户相关的系统都要通过跳转到这个用户登录和身份验证系统CIAM来完成用户登录和身份识别,我们这个系统就要收到放置各种小程序域名校验文件的要求。这些域名校验文件对应小程序的放置和信息维护是个要长期考虑的问题。

问题:

  1. 放小程序域名校验文件的原因是什么?
  2. 一定要放置小程序域名校验文件吗?(正式上线环境,未上线之前已了解可以不校验)
  3. 小程序域名校验这个事情貌似是中国特有的需求。我们这个用户登录和身份验证系统CIAM是个全球共用的系统,CIAM系统一般不进行定制化。放置小程序域名校验文件是否可以避免?
  4. 如果上述问题的答案是不能,那么对于我们这种基础底层服务来说,腾讯是否可以出相关的方案,来允许众多小程序只放置一个统一的校验文件,从而避免多次放置多个校验文件和相关信息的维护?


谢谢大家!

Community developer friends and wechat team: Hello! I have some questions to ask: BACKGROUND: I am responsible for part of the company's "user login and authentication system CIAM" in China, and I am not directly responsible for small program development. However, many applet development teams will find me and ask me to place the applet domain name verification file. Since the CIAM system I am responsible for is the basis of business, almost all systems related to end users need to complete user login and identification by jumping to the user login and authentication system CIAM. Our system needs to receive the requirements for placing various small program domain name verification files. The placement and information maintenance of these domain name verification files corresponding to small programs should be considered for a long time. Question: what is the reason for releasing the applet domain name verification file? Do you want to place the applet domain name verification file? (the environment is officially launched, and it can not be verified before it is launched.) the verification of applet domain name seems to be a unique demand in China. Our user login and authentication system CIAM is a global common system, and CIAM system is generally not customized. Can I avoid placing applet domain name verification files? If the answer to the above question is no, can Tencent come up with relevant schemes for our basic underlying services to allow many applets to place only one unified verification file, so as to avoid the maintenance of multiple verification files and related information? Thank you!

回答:

青寒:

1,他们微信官方不能让开发者随意设置域名,需证明开发者对该域名有权限(用放置校验文件来证明)。

2,3,4,可参考1的答案。

微喵网络:

Welcome to China


拾忆:

1.放置校验文件一般是小程序内需要通过web-view访问的域名进行所有权校验。

2.验证通过后可以随时删除校验文件。

3.这个是小程序的规定,和国家无关。

刘伟:感谢您的快速回复。
关于您的回答2,验证后都不需要再次验证了吗?比如在小程序做升级或者其他变更后呢?
关于问题3,我的问题主要是是否可以避免放置验证文件,但是看您的回答是不行
问题4有相关的方案吗?
另外,关于问题1和2的回答,是否有微信的官方说明文档呢?


再次感谢您的回复!
拾忆:问题2,在小程序生态下,只有添加业务域名的时候才会需要通过校验文件验证域名,只要不是新添加的不会重新校验。
问题3,避免放置校验文件除非让对方小程序不要通过web-view访问你们的域名,否则对方只要想添加访问就必须校验。
问题4,没有方案,域名校验目前只能是一个帐号一个校验文件。

-EOF-

AI助手支持GPT4.0