Search⌘ K
AI Features

Authorization

Explore how to secure Phoenix Channels by implementing authorization rules that limit channel access to two distinct players using Presence. Understand how to write functions to check player counts and screen name uniqueness, enabling you to control who can join in real time. This lesson shows practical use of Presence and channel join logic to maintain a stateful, authorized connection in an Elixir web application.

Permissible actions

In this last lesson, we tackle authorization: deciding if an action is permissible. The action we really care about is joining a Channel. The rules for this are simple. We want only two players to join a Channel on any given topic-subtopic and also want those two players to have different screen names.

Authentication resources

In Islands, we don’t need authentication—determining if users are who they say they are. If your application needs authentication, there are resources out there to help. ...