
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@logto/connector-aliyun-dm
Advanced tools
The official Logto connector for Aliyun connector for direct mail service.
阿里云邮件推送服务 Logto 官方连接器 中文文档
Table of contents
Aliyun is a primary cloud service provider in Asia, offering many cloud services, including DM (direct mail). Aliyun DM Connector is a plugin provided by the Logto team to call the Aliyun DM service APIs, with the help of which Logto end-users can register and sign in to their Logto account via mail verification code (or in other words, verification code).
💡 Tip
You can skip some sections if you have already finished.
Head to Aliyun and create your Aliyun account if you don't have one.
Go to the DM service console page and sign in. Enable the Direct Mail service by clicking the "Apply to enable" (申请开通) button on the top left of the page and begin the configuration process.
Starting from the DM admin console page, you should:
After finishing setup, there are two different ways to test:
accessKeyId and accessKeySecret fields with access key pairs you've got from step 1.accountName and fromAlias field with "Sender Address" and "Email Tag" which were found in step 2. All templates will share this signature name. (You can leave fromAlias blank as it is OPTIONAL.)subject field, which will work as title of the sending email.content field with arbitrary string-type contents. Do not forget to leave {{code}} placeholder for random verification code.usageType field with either Register, SignIn, ForgotPassword or Generic for different use cases. (usageType is a Logto property to identify the proper use case.) In order to enable full user flows, templates with usageType Register, SignIn, ForgotPassword and Generic are required.You can type in an email address and click on "Send" to see whether the settings can work before "Save and Done".
That's it. Don't forget to Enable connector in sign-in experience.
| Name | Type |
|---|---|
| accessKeyId | string |
| accessKeySecret | string |
| accountName | string |
| fromAlias | string (OPTIONAL) |
| templates | Template[] |
| Template Properties | Type | Enum values |
|---|---|---|
| subject | string | N/A |
| content | string | N/A |
| usageType | enum string | 'Register' | 'SignIn' | 'ForgotPassword' | 'Generic' |
阿里云是亚洲地区一个重要的云服务厂商,提供了包括邮件服务在内的诸多云服务。
本连接器是 Logto 官方提供的阿里云邮件连接器,帮助终端用户通过邮件验证码进行登录注册。
💡 Tip
你可以跳过已经完成的部分。
前往 阿里云 并完成帐号的注册。
来到 阿里云邮件服务 然后登录。点按页面左上的「申请开通」按钮以开通邮件服务并开始配置流程。
从 邮件服务管理控制台 开始:
在完成了设置之后,这里提供了两种测试的方法:
accessKeyId 和 accessKeySecret。accountName 和 fromAlias。(fromAlias 可以不填写,它是 可选的。)subject 栏填写发送邮件的 标题。content 栏中填写字符形式的内容。不要忘了在内容中插入 {{code}} 占位符,在真实发送时他会被替换成随机生成的验证码。usageType 栏填写 Register,SignIn,ForgotPassword 或者Generic 其中之一以分别对应 注册,登录,忘记密码 和 通用 的不同场景。(usageType 是 Logto 的属性,用来确定使用场景。)为了能够使用完成的流程,需要配置 usageType 为 Register,SignIn, ForgotPassword 以及 Generic 的模板。你可以在「保存并完成」之前输入一个邮件地址并点按「发送」来测试配置是否可以正常工作。
大功告成!快去 启用邮件验证码登录 吧。
| 名称 | 类型 |
|---|---|
| accessKeyId | string |
| accessKeySecret | string |
| accountName | string |
| fromAlias | string (OPTIONAL) |
| templates | Template[] |
| 模板属性 | 类型 | 枚举值 |
|---|---|---|
| subject | string | N/A |
| content | string | N/A |
| usageType | enum string | 'Register' | 'SignIn' | 'ForgotPassword' | 'Generic' |
FAQs
Aliyun DM connector implementation.
We found that @logto/connector-aliyun-dm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.