Skip to content

Latest commit

 

History

History

authentication-workflow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Secure authentication with tokens

Authentication is the act of validating the identity of each user before they access a system. Agora uses digital tokens to authenticate users and their privileges before they access Signaling. Each token is valid for a limited period and works only for a specific user ID.

This example shows you how to retrieve a token from an authentication server and use it to connect securely to Signaling.

Understand the code

For context on this implementation and a full explanation of the essential code snippets used in this example, read the Secure authentication with tokens document. To quickly deploy a token server, see Create and run a token server. You use your token server URL for user authentication in this example.

For the UI implementation of this example, refer to TokenAuthenticationView.swift.

How to run this example

To see how to run this example, refer to the README in the root folder or one of the complete product guides.