Home / Companies / SurrealDB / Blog / Post Details
Content Deep Dive

Integrate Auth0 as an Authentication provider

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Gerard Guillemas Martos
Word Count
256
Language
English
Hacker News Points
-
Summary

This guide outlines the process of using Auth0 as an authentication provider for single-page web applications that utilize SurrealDB as their sole backend. It provides detailed instructions on configuring Auth0 to issue tokens compatible with SurrealDB, setting up SurrealDB to accept these tokens, defining user-level authorization with SurrealDB scopes, and authenticating users within a single-page application. Additionally, it explains how to retrieve and update information from SurrealDB using authenticated user credentials. While the guide focuses on scenarios where SurrealDB is the only backend, it is still applicable for applications with additional backends or those not strictly classified as single-page applications, offering flexibility in token request and validation methods.