SaveRestrictions
定义将在保存期间验证的对象的限制。注意:这是一项高级功能,请与 Google 联系以获取实施方面的支持。
JSON 表示法 |
{
"restrictToEmailSha256": string
} |
字段 |
restrictToEmailSha256 |
string
将引用对象限制为仅保存给定电子邮件地址。这是电子邮件地址的 SHA256 总和的十六进制输出,全部采用小写形式,且不含“@”以外的任何符号,例如“.”或“+”。 例如,对于 example@example.com,此值将为 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66,而对于 Example@example.com,此值将为 bc34f60fb2096f3606f606f3606f26 如果尝试保存此卡券的已登录用户的电子邮件地址与此处定义的值不匹配,则用户将无法保存此卡券。系统会显示一条错误消息,提示他们与发卡机构联系。 应通过“使用 Google 账号登录”集成 https://developers.google.com/identity/authentication 从用户那里收集此类信息,并征得用户的明确同意。请先与支持团队联系,然后再使用“保存限制”功能。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-13。
[null,null,["最后更新时间 (UTC):2024-11-13。"],[[["JSON representation defines restrictions to ensure data integrity during the save process, primarily focusing on email verification."],["It uses `restrictToEmailSha256` field to limit saving privileges to a specific email address, enhancing security."],["The email address is SHA256 hashed and compared with the provided value to authorize save operations."],["Users with unmatched email addresses will be denied save permissions and advised to contact the issuer."],["This feature is advanced and requires contacting Google support for implementation and guidance on obtaining user consent via Sign in with Google."]]],["The core content describes a feature called \"Save Restrictions\" that limits object saving to a specific email address. The `restrictToEmailSha256` field, represented as a string, stores the SHA256 hash of the email. Only users whose email's SHA256 hash matches this value can save the object. Mismatched users are prompted to contact the issuer. The hash is lowercase, excluding \".\" or \"+\" but including \"@\". The information needs an explicit user consent. This feature requires contacting Google for support before implementation.\n"]]