Episode #580

Authenticating users and protecting routes

Series: Build a Vapor Backend

14 minutes
Published on July 19, 2024

This video is only available to subscribers. Get access to this video and 585 others.

In this episode we will explore how to use AsyncRequestAuthenticator types, such as AsyncBasicAuthenticator and AsyncBearerAuthenticator. We’ll see how to compose these to support multiple authentication strategies and how to protect certain routes to require authenticated users.

This episode uses Xcode 16.0-beta3, Vapor 4.92.