
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
@cloudbase/framework-plugin-auth
Advanced tools
云开发 Tencent CloudBase Framework Auth Plugin 插件,可以一键设置项目下的登录配置。
云开发 CloudBase Framework 框架「登录配置」插件: 通过云开发 CloudBase Framework 框架一键设置环境下的登录配置。
具体步骤请参照 准备云开发环境和 CloudBase CLI 命令工具
在 framework.plugins 中新增登录插件配置
{
"envId": "YOU_ENV_ID",
"framework": {
"plugins": {
"auth": {
"use": "@cloudbase/framework-plugin-auth",
"inputs": {
"configs": [
{
"platform": "NONLOGIN",
"status": "ENABLE"
}
]
}
}
}
}
}
具体配置信息请参考下面的配置文档
cloudbase framework deploy
默认情况下仅需要配置 appid、privateKeyPath 即可使用,以下配置参数针对有特殊需求的场景
云开发的配置文件 cloudbaserc.json,可在配置文件的 plugins 里修改和写入插件配置
{
"envId": "YOU_ENV_ID",
"framework": {
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-auth",
"inputs": {
"configs": [
{
"platform": "NONLOGIN",
"status": "ENABLE"
}
]
}
}
}
}
}
configs必填,类型为数组格式 Array.<Login 对象>
| 属性名称 | 类型 | 长度 | 是否必填 | 描述 |
|---|---|---|---|---|
| platform | String | 1-32 | 是 | 平台名称,可枚举值: WECHAT-OPEN:微信开放平台; WECHAT-PUBLIC:微信公众平台; QQ-MINI:QQ 小程序; CUSTOM:自定义登录; ANONYMOUS:匿名登录; EMAIL:邮箱登录; NONLOGIN:未登录 目前仅支持 ANONYMOUS 和 NONLOGIN |
| status | String | 1-32 | 否 | 默认开启,可枚举值:ENABLE;DISABLE。 |
| platformId | String | 1-64 | 否 | 第三方平台的 AppID |
| platformSecret | String | 1-64 | 否 | 第三方平台的 AppSecret |
请访问 CloudBase Framework 插件列表 搭配使用其他插件
FAQs
云开发 Tencent CloudBase Framework Auth Plugin 插件,可以一键设置项目下的登录配置。
The npm package @cloudbase/framework-plugin-auth receives a total of 53 weekly downloads. As such, @cloudbase/framework-plugin-auth popularity was classified as not popular.
We found that @cloudbase/framework-plugin-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.