YunPian SMS connector
The official Logto connector for YunPian SMS service.
팁:
This guide assumes you have basic understanding of Logto Connectors. For those unfamiliar, please refer to the Connectors guide to get started.
Get started
YunPian is a communication service provider offering various services including SMS. The YunPian SMS Connector is a plugin provided by the Logto team to integrate with YunPian's SMS service, enabling Logto end-users to register and sign in via SMS verification codes.
Set up SMS service in YunPian Console
Create a YunPian account
Visit YunPian's website to register an account and complete real-name verification.
Get API KEY
- Log in to YunPian Console
- Go to "Account Settings" -> "Sub-account Management"
- Find and copy the API KEY
Configure SMS templates
- In YunPian Console, go to "Domestic SMS" -> "Signature Filing"
- Create and submit a signature, wait for carrier approval
- Go to "Domestic SMS" -> "Template Filing" and select "Verification Code"
- Create a verification code template, ensure it includes the
#code#
variable (you can also use "Common Templates" to speed up the approval process) - Wait for template approval
- If you need to send international SMS, repeat the above steps but select "International SMS" -> "Template Filing"
Configure in Logto
- In Logto Console, go to "Connectors"
- Find and click "YunPian SMS Service"
- Fill in the configuration form:
- API KEY: The API KEY obtained from YunPian
- SMS templates: Configure templates according to usage, ensure they match exactly with approved templates in YunPian
Notes
- SMS template content must match exactly with the approved template in YunPian
- The verification code variable placeholder in YunPian templates is
#code#
, while in the connector configuration it's{{code}}
- YunPian automatically adds the default signature based on API KEY, no need to include signature in the template content
- It's recommended to test the configuration before formal use