Define a permission model? #117
Labels
security-tracker
Group bringing to attention of security, or tracked by the security Group but not needing response.
unknown/future spec
Should we define a permission model for MiniApps and corresponding APIs?
Related docs:
MiniApp Manifest
Spec: https://w3c.github.io/miniapp-manifest/#req_permissions-member
W3C
Web pages/applications
Specs:
Query a permission using the
navigator.permissions.query()
method to return a promise that resolves with the status for a specific API.Extensions
Docs: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/permissions
permissions.request()
asks for a set of permissions.WeChat Mini Programs
Docs: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html
Use
wx.getSetting
to get the user's current permission settings (only for the permissions the Mini Program has requested before).Use
wx.authorize
to ask for a set of permissions.ByteDance Mini Programs
Docs: https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/api/other/user-authorization/
Use
tt.getSetting
to get the user's current permission settings (only for the permissions the Mini Program has requested before).Use
tt.authorize
to ask for a set of permissions.The text was updated successfully, but these errors were encountered: