Skip to main content
Android
iOS
Web
Electron

Secure your classrooms

Security and compliance are essential for real-time engagements through technology. In order to provide safe and reliable cloud services, Agora adheres to the compliance requirements of different countries, regions, and industries.

Agora Flexible Classroom is designed and built with multiple protection measures against attacks commonly seen in the real-time engagement industry. This page describes some of the security best practices that Agora Flexible Classroom has adopted, as well as security tools it provides for developers, as follows:

Protection measuresApplied by defaultRecommended scenarios
Classroom separationYesAll real-time scenarios.
Token authenticationNoAll real-time apps must use token-based end user authentication.
Data encryption and storageYesReal-time scenarios that require confidentiality.
Network geofencingNoReal-time scenarios where customers wish to restrict access to Agora servers to within a specified region.

Classroom separation

Agora creates independent and isolated classrooms for audio, video, or messaging data transmission with the room ID specified by the app developer. All classrooms are logically separated and only authenticated users from the same Agora App ID can join the same classroom.

Token authentication

Agora Flexible Classroom uses the Signaling token for end user authentication. The Signaling token is an access key with the expiration time of 24 hours. It is generated by the app backend with important information such as the Agora App ID, user ID (uid), and channel name. It allows end users to access the Agora platform after the user is properly validated by the app.

The app developer can enable token authentication (App Certificate) in Agora Console. When enabled, all user’s request to join a classroom must be done with a valid Signaling token.

Data encryption and storage

To guarantee data confidentiality during transmission, Agora Flexible Classroom uses the TLS (Transport Layer Security) and Secure Sockets Layer (SSL) encryption protocols.

Agora Flexible Classroom does not store any of your business data or user data except for caching them for transmission purpose. The cached data will be released an hour after the classroom ends. Agora Flexible Classroom supports uploading files and real-time recording in a classroom. The uploaded class files and recorded files are stored in the third-party cloud storage designated by the app developer. These features are disabled by default. Only after the app developer enables these features and specifies a third-party cloud storage in Agora Console, can authenticated users access the services and the stored resources.

Network geofencing

To conform to the laws and regulations of different countries and regions, Agora Flexible Classroom supports network geofencing, which limits the transmission of data to within a specified region.

Agora Flexible Classroom sets up the following four regions and supports the network geofencing in the following regions:

Data centerLocationService region
CNShanghai, ChinaMainland China
APSingaporeAsia Pacific
EUFrankfurt, GermanyEurope
NASilicon Valley, USNorth America

Agora Flexible Classroom implements network geofencing in each server-side RESTful API as well as all client-side Classroom SDKs. The app developer can specify a region when calling the RESTful APIs or launching a classroom.

With network geofencing enabled, data transfer will be restricted to the service regions that your specified data center covers. However, in some cases cross-region data transfer may be needed. For example, a teacher joins a flexible room in Europe, but the students are located in North America. For the teacher to interact with these students, it must be allowed to transmit the data to regions outside Europe. In such cases, Agora Flexible Classroom can support cross-region data transfer under your permissions.

Security best practice checklist

Use this list to quickly check what measures you have or have not taken to best protect the security of your app and users:

  1. Enable token authentication in Agora Console.
  2. Disable No certificate in your project management page. Once it is done your app authenticates users with tokens only. img
  3. Deploy an Signaling token server in your backend services.
  4. Protect the token server and only allow the app backend server to connect to the token server.
  5. For additional security, you can also do the following:
    • Set the classroom ID to a one-time random string managed by your app.
    • Set the user ID to a one-time random string that is mapped to the user on the app level. Do not use the users' real ID on your app as the user ID in Agora services.
vundefined