Skip to main content

Command Palette

Search for a command to run...

Docusaurus Authentication (Roadmap)

A roadmap guide on how to add authentication to Docusaurus

Updated
2 min read
Docusaurus Authentication (Roadmap)
M

• High-performing, certified full-stack developer and data scientist with 6+ years of software development experience. • Expert in delivering IT solutions for financial services leveraging the latest tools & frameworks.

Background

Docusaurus is a well-designed, and user-friendly documentation generator tool with a modern and optimized codebase that supports multiple plugins to make it easier for either a normal user or a developer to ship out a documentation website swiftly.

Projects

I have utilized Docusaurus to create multiple websites like:

What is missing?

This tool provides everything you need except for some important features like the Authentication layer.

Goal

The Authentication layer helps you create an internal documentation website for your company, or you can use it to provide subscription-based documentation for your product.

Resources

I searched the web and I was able to find some efforts for the older versions of Docusaurus using Firebase. Though I would like to introduce a step-by-step guide to adding an Authentication layer to a Docusaurus website using common Auth providers. You can find the links to those articles below:

AWS Cognito

Google Firebase

Auth0

  • Docusaurus authentication using Auth0 (Coming soon)

In each article, you can find the step-by-step guide and also the GitHub repository contains the working example as well.

In addition, please let me know if you need to implement the Auth flow using another provider so I can add it as well.

Support

In the end, if you find the articles useful, don’t forget to support me at least with a message :)

Docusaurus Authentication

Part 5 of 5

In this series, I will provide a step-by-step guide on how to add an authentication layer to your Docusaurus website using well-known auth providers like AWS Cognito, Google Firebase, Auth0, etc.

Start from the beginning

Protect Custom Routes in Docusaurus using Google Firebase

A guide on how to protect specific paths in your Docusaurus website utilizing Google Firebase