Skip to main content

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:

  1. You have successfully installed and deployed Casdoor and the Casnode application.
  2. You have a valid SMS provider account and possess the necessary API key or authentication credentials.
  3. You have a valid Email provider account and possess the SMTP server information and account credentials.
  4. You have a valid Storage provider account and possess the necessary access credentials.

Step 1: Configure the SMS Provider

  1. Open the Casdoor Management Interface and Log in using your administrator account.
  2. Adding an SMS provider. add provider
  3. Fill in the appropriate parameters based on the requirements of your SMS provider. This generally includes the API key, API URL, etc. add provider
  4. Save the configuration changes.

Step 2: Configure the Email Provider

  1. Open the Casdoor Management Interface and log in using your administrator account.
  2. Add an SMTP Email provider.
  3. 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. smtp
  4. Save the configuration changes.

Step 3: Configure the Storage Provider

  1. Open the Casdoor Management Interface and log in using your administrator account.
  2. Add a Storage provider.
  3. 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.
  4. Save the configuration changes.

Step 4: Add SMS, SMTP and Storage Providers to Casnode Application

  1. Open the Casdoor Management Interface and Log in using your administrator account.
  2. Open the Casnode Application. add provider2
  3. Add Providers to the Application. add provider3

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.