Configure File Storage, SMS and Email
Introduction
This document will guide you on how to configure Casdoor to use SMS, Email, and Storage providers to enable the respective functionality for the Casnode application. By properly configuring the SMS, Email, and Storage providers, you can allow the Casnode application to send SMS and Email notifications to users, as well as utilize cloud storage services.
Prerequisites
Before getting started with the configuration, please ensure that the following prerequisites are met:
- You have successfully installed and deployed Casdoor and the Casnode application.
- You have a valid SMS provider account and possess the necessary API key or authentication credentials.
- You have a valid Email provider account and possess the SMTP server information and account credentials.
- You have a valid Storage provider account and possess the necessary access credentials.
Step 1: Configure the SMS Provider
- Open the Casdoor Management Interface and Log in using your administrator account.
- Adding an SMS provider.
- Fill in the appropriate parameters based on the requirements of your SMS provider. This generally includes the API key, API URL, etc.
- Save the configuration changes.
Step 2: Configure the Email Provider
- Open the Casdoor Management Interface and log in using your administrator account.
- Add an SMTP Email provider.
- Fill in the appropriate parameters based on the requirements of your Email provider. This generally includes the SMTP server address, port number, account credentials, etc.
- Save the configuration changes.
Step 3: Configure the Storage Provider
- Open the Casdoor Management Interface and log in using your administrator account.
- Add a Storage provider.
- Fill in the appropriate parameters based on the requirements of your Storage provider. This generally includes the Access Key ID, Secret Access Key, region, and bucket name.
- Save the configuration changes.
Step 4: Add SMS, SMTP and Storage Providers to Casnode Application
- Open the Casdoor Management Interface and Log in using your administrator account.
- Open the Casnode Application.
- Add Providers to the Application.
Step 5: Test the Configuration
Once the SMS, SMTP and Storage providers are configured, you can trigger the respective SMS and Email notification features (such as reply), and upload/download files through the Casnode application and verify if notifications are received and storage is functional as expected. This will help validate the correctness of the configuration.