Authentication
ApiRTC APIs accept several authentication mechanisms
Anonymous user
Anonymous/unidentified users can use ApiRTC library through your apiKey only.
Be mindful that your apiKey is readable by any user.
Authentication via login/password
ApiRTC library and REST APIs supports login/password authentication.
However, for any frontend implementation, we recommend to use a JWT to avoid leaking your identifiers publicly.
Authenticate with a JWT token
ApiRTC library is accepting JWT authentication, whether the token is emitted:
by the ApiRTC platform through the authentication endpoint,
or by any external authentication server that respect the JWT standard.
More about the JWT authentication
The authentication call-flow is illustrated below:
How to forge a JWT
To understand the JWT format, here is a code sample using the jsonwebtoken authentication module:
#YOUR_USER_ID#
is the user identifier used in the external user management system,#YOUR_SECRET_HERE#
is a secret key that you get from the ApiRTC authentication configuration interface,#YOUR APIKEY_HERE#
is an apiKey you get from the ApiRTC console.
Continue reading about JWT Authentication
Last updated