npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@logto/connector-aliyun-sms-mas

v1.1.0

Published

Aliyun Message Authentication Service (MAS) connector implementation.

Readme

Aliyun Message Authentication Service connector

The Logto connector for Aliyun Message Authentication Service.

阿里云短信认证服务 Logto 连接器 中文文档

Table of contents

Get started

Aliyun Message Authentication Service is a specialized service for verification code scenarios, under the Phone Number Verification Service product family, different from the standard Short Message Service.

Differences and Limitations

Differences from Short Message Service (SMS)

For a detailed comparison between Message Authentication Service and Short Message Service, see Aliyun Documentation.

Key differences:

  • SMS Service: Requires applying for your own signatures and templates, supports various message types (verification codes, notifications, marketing), supports international numbers
  • Message Authentication Service: Uses system-provided signatures and templates, verification code only, simplified integration

Note: SMS sending channel only This connector only uses Aliyun Message Authentication Service as a channel to send SMS. The verification code generated by Logto is passed through API parameters, without integrating Aliyun's verification code generation, validation, and lifecycle management features. This design choice is made to maintain Logto's existing "generate and validate" architecture. When using this connector, do not expect the verification code to be managed by Aliyun.

Limitations

⚠️ Important: Message Authentication Service has the following limitations:

  • Domestic numbers only: Currently only supports mobile numbers from China Mobile, China Unicom, and China Telecom (mainland China)
  • No international support: Does NOT support Taiwan, Hong Kong, Macau, or overseas regions
  • No custom signatures: As of November 12, 2025, Aliyun announced that "Due to carrier signature real-name policy control requirements, all authentication methods that use SMS verification codes under the Number Authentication product will not support using custom signatures to send SMS, specific recovery time will be notified separately."

If you need to send SMS to international numbers or regions outside mainland China, please use the Aliyun Short Message Service connector instead.

Set up Message Authentication Service in Aliyun Console

  1. Go to the Aliyun website and sign in with your account.
  2. Navigate to Message Authentication Service Console.
  3. The service is already activated by default. You can directly use the system-provided signatures and templates.
  4. Go to "AccessKey Management" from your avatar menu and create an AccessKey pair.

Compose the connector JSON

  1. Fill out the accessKeyId and accessKeySecret with your AccessKey pair.
  2. Select a signName from the system-provided options:
    • 云渚科技验证平台
    • 云渚科技验证服务
    • 速通互联验证码
    • 速通互联验证平台
    • 速通互联验证服务
  3. Configure templates using system-provided template codes:

| UsageType | Template Code | Description | |-----------|--------------|-------------| | SignIn | 100001 | Login verification | | Register | 100001 | Registration verification | | ForgotPassword | 100003 | Password reset | | Generic | 100001 | General verification | | UserPermissionValidation | 100005 | User permission validation | | BindNewIdentifier | 100002 | Bind new identifier | | OrganizationInvitation | 100001 | Organization invitation | | MfaVerification | 100001 | MFA verification | | BindMfa | 100001 | Bind MFA |

Example configuration:

{
  "accessKeyId": "your-access-key-id",
  "accessKeySecret": "your-access-key-secret",
  "signName": "速通互联验证码",
  "templates": [
    { "usageType": "SignIn", "templateCode": "100001" },
    { "usageType": "Register", "templateCode": "100001" },
    { "usageType": "ForgotPassword", "templateCode": "100003" },
    { "usageType": "Generic", "templateCode": "100001" },
    { "usageType": "UserPermissionValidation", "templateCode": "100005" },
    { "usageType": "BindNewIdentifier", "templateCode": "100002" },
    { "usageType": "OrganizationInvitation", "templateCode": "100001" },
    { "usageType": "MfaVerification", "templateCode": "100001" },
    { "usageType": "BindMfa", "templateCode": "100001" }
  ]
}

Config types

| Name | Type | Description | |------|------|-------------| | accessKeyId | string | Aliyun Access Key ID | | accessKeySecret | string | Aliyun Access Key Secret | | signName | enum | Signature name | | templates | Template[] | Array of template configurations |

References


阿里云短信认证服务连接器

阿里云短信认证服务是专门为验证码场景设计的服务,隶属于号码认证服务(Phone Number Verification Service),与标准短信服务不同。

与短信服务的区别

关于短信认证服务与短信服务的详细对比,请参阅阿里云文档

主要区别:

  • 短信服务:需要自行申请签名和模板,支持多种短信类型(验证码、通知、营销),支持国际号码
  • 短信认证服务:使用系统赠送的签名和模板(无需申请),仅支持验证码场景,内置频控机制,接入更简单

注意:仅作为短信发送通道

本连接器仅将阿里云短信认证服务用作短信发送通道。通过 API 参数传入 Logto 生成的验证码,不集成阿里云的验证码生成、校验及生命周期管理功能。这是为保持 Logto 现有"生成并校验"架构而做出的设计选择。使用本连接器时,不应期望该验证码由阿里云管理。

使用限制

⚠️ 重要提示:短信认证服务有以下限制:

  • 仅限中国大陆手机号:目前仅支持中国移动、中国联通和中国电信的手机号码(中国大陆)
  • 不支持国际及港澳台:不支持中国台湾、中国香港、中国澳门及海外地区使用
  • 不支持自定义签名:自2025年11月12日起,阿里云发布公告称"因运营商签名实名制政策管控要求,即日起号码认证产品下所有使用短信验证码触达的认证方式,均不支持使用自定义签名下发短信,具体恢复时间另行通知。"

如果您需要向国际号码或中国大陆以外的地区发送短信,请改用阿里云短信服务连接器

在阿里云控制台配置短信认证服务

  1. 前往 阿里云 并登录账号。
  2. 进入 短信认证服务控制台
  3. 服务开通后,可直接使用系统赠送的签名和模板。
  4. 从头像菜单进入 "AccessKey 管理" 创建 AccessKey 密钥对。

编写连接器的 JSON

  1. 填写 accessKeyIdaccessKeySecret 为你的 AccessKey 密钥对。
  2. 从系统赠送签名中选择一个填入 signName
    • 云渚科技验证平台
    • 云渚科技验证服务
    • 速通互联验证码
    • 速通互联验证平台
    • 速通互联验证服务
  3. 使用系统赠送模板代码配置模板:

| UsageType | 模板 CODE | 说明 | |-----------|----------|------| | SignIn | 100001 | 登录验证 | | Register | 100001 | 注册验证 | | ForgotPassword | 100003 | 重置密码 | | Generic | 100001 | 通用验证 | | UserPermissionValidation | 100005 | 用户权限验证 | | BindNewIdentifier | 100002 | 绑定新标识符 | | OrganizationInvitation | 100001 | 组织邀请 | | MfaVerification | 100001 | MFA 验证 | | BindMfa | 100001 | 绑定 MFA |

示例配置:

{
  "accessKeyId": "your-access-key-id",
  "accessKeySecret": "your-access-key-secret",
  "signName": "速通互联验证码",
  "templates": [
    { "usageType": "SignIn", "templateCode": "100001" },
    { "usageType": "Register", "templateCode": "100001" },
    { "usageType": "ForgotPassword", "templateCode": "100003" },
    { "usageType": "Generic", "templateCode": "100001" },
    { "usageType": "UserPermissionValidation", "templateCode": "100005" },
    { "usageType": "BindNewIdentifier", "templateCode": "100002" },
    { "usageType": "OrganizationInvitation", "templateCode": "100001" },
    { "usageType": "MfaVerification", "templateCode": "100001" },
    { "usageType": "BindMfa", "templateCode": "100001" }
  ]
}

配置类型

| 名称 | 类型 | 描述 | |------|------|-------------| | accessKeyId | string | 阿里云 Access Key ID | | accessKeySecret | string | 阿里云 Access Key Secret | | signName | enum | 签名名称 | | templates | Template[] | 模板配置数组 |

参考