Why Restrict Access?

Explore the concept of access restrictions in this lesson.

We'll cover the following...

Overview

The last section explored the basics of real-time applications powered by Channels, which let us build simple real-time applications. However, there’s still more we need to know to build full-featured applications. This section will cover adding access restrictions to Sockets and Channels.

We’ll start this section by examining how to restrict access to Channels and Sockets to ensure that data is provided only to the right users. We’ll use a Phoenix.Token to pass authentication information from the server to the view ...