SurrealDB Cloud Dedicated is now available
Sign up for early access

Integrate Auth0 as an Authentication provider

tutorials

Jan 14, 2024

Gerard Guillemas Martos
Gerard Guillemas Martos
Show all posts
Integrate Auth0 as an Authentication provider

This guide will cover using Auth0 as the authentication provider for single-page web applications using SurrealDB as the only backend. In this guide you will learn the following:

  • How to configure Auth0 to issue tokens that can be used with SurrealDB.
  • How to configure SurrealDB to accept tokens issued by Auth0.
  • How to define user-level authorization using SurrealDB scopes.
  • How to authenticate users with Auth0 in a single-page application.
  • How to retrieve and update information from SurrealDB using the authenticated user.

This guide will cover the most general case, in which SurrealDB is the only backend for your application. You can still follow this guide even if you have additional backends, but in that case you may have other options available to request and validate tokens issued by Auth0. Likewise, even if your application is not strictly a Single-Page Application (SPA), you may still follow and benefit from this guide.

Click here to read the guide. Happy reading!

Live Queries in Rust

tutorials

Live Queries in Rust

Jan 10, 2024

Introducing our new monthly release schedule

releases

Introducing our new monthly release schedule

Jan 12, 2024

Get insider access to Surreal's latest news and events

Trusted & Certified for Enterprise Security Learn more
SOC 2 Type 1
GDPR
Cyber Essentials Plus
ISO 27001