Directus Logo
  • The Directus Toolkit
    • Connect
      Generate REST and GraphQL APIs instantly
    • Explore
      Browse and filter data in custom layouts
    • Editor
      Create and manage data in custom forms
    • Files
      Store and transform all your digital assets
    • Auth
      Protect your data with granular access control
    • Insights
      Visualize data within custom dashboards
    • Automate
      An automation builder for your data
    • Realtime
      Keep your data in sync with WebSockets
    Extend Your Toolkit
    Directus Marketplace

    Directus Marketplace

    Customize your data experience with extensions

  • Build powerful apps and tools
    • code_blocks
      Headless CMS
      Manage and deliver digital experience content
    • speed
      Backend-as-a-Service
      Simplify backend operations and scale
    • shopping_cart_checkout
      Product Management (PIM)
      A single source of truth for products
    • lightbulb
      100+ More Things To Build
      Looking for inspiration? Look no further
    • rocket_launch
      Startups
      Build fast, scale faster
    • apartment
      Enterprise
      Secure, scalable composable architecture
    • autopay
      Agencies
      Enhance your productivity and agency offerings
    • account_balance
      Government
      Dual-use platform for government applications
    Focus on the frontend
    Directus Cloud

    Directus Cloud

    Convenience and scalability without the stress.

  • Technical resources
    • menu_book
      Directus Docs
      Documentation on set-up and using Directus
    • api
      API Reference
      Dynamic REST and GraphQL API docs
    • slideshow
      Tutorials and Guides
      Our developer blog for specific use cases
    • avg_pace
      Quickstart Guide
      Get up and running quickly
    • map
      Roadmap
      See what's on our product roadmap
    • security
      Security
      Our commitment to security and compliance
    • GitHub
      Visit our repo on GitHub
    • Docker Hub
      Visit the official Directus Docker hub
    Open Source
    Visit our GitHub

    Visit our GitHub

    We're committed to the open source community.

  • Learning Center
    • library_books
      Blog
      Read our latest articles and guides
    • magic_button
      Success Stories
      Case studies and success stories
    • video_library
      Videos
      Watch our latest videos and how-tos
    • event
      Events & Meetups
      See upcoming events and in-person meetups
    • supervised_user_circle
      About Us
      Learn more about Directus and the team
    • heart_plus
      The Wall of Love
      See what others are saying about us
    • mark_email_unread
      Contact
      Have a general inquiry or question for us?
    • support
      Support
      Reach out to Directus support
    Join our community
    Join our 10k+ Member Discord

    Join our 10k+ Member Discord

    Get community support, see what others are building, and more.

  • Pricing
Book a DemoCreate a Project
starStar us on GitHub

Auth

  1. Overview
  2. Features
  3. Docs

Authentication made easy.

Leverage Directus' user system or your own SSO and easily build user accounts into your application with robust permissions.

Create a projectarrow_forwardView the docsarrow_forward

Ready-to-implement user accounts and a granular permissions system.

Connect directly to any database and get an intuitive GUI for managing user accounts and permissions.

RBAC and SSO

Powerful role-based access controls.

Our robust roles & permissions system allows filter rules, custom validation, field-level permissions, IP allow-lists, and configurable public access.

Create a projectarrow_forward
A screen shot of a screen showing a list of items.
token

Native and token-based authentication

Authenticate with API using email/password, or token-based authentication.

supervised_user_circle

Invite users or create them directly

Invite users to your project or directly create them from your instance.

join_inner

Free and flexible SSO

Built-in JWT auth supports SSO via OAuth, SAML, OpenID, and LDAP with 2FA support.

const user = await client.request(
	createUser({ 
		email: 'user@example.com',
		password: 'hunter2'
	})
);
const user = await client.login(email, password);
API-Powered Auth

Authenticate via our API.

Create, update and read user data, and login, logout, and refresh access tokens all with Directus' simple API.

const { subscription } = await client.subscribe('messages');

for await (const item of subscription) {
	console.log('subscription', { item });
}
 
/*
{
	"type": "subscription",
	"event": "create",
	"data": [{
		"id": 1,
		"text": "Hello World"
	}]
}
*/
const { subscription } = await client.subscribe('messages');

for await (const item of subscription) {
	console.log('subscription', { item });
}

/*
{
	"type": "subscription",
	"status": "error",
	"error": {
		"code": "FORBIDDEN",
		"message": "You don't have permission to access this."
	}
}
*/
Live Updates

Realtime that respects your access.

Directus Realtime supports multiple authentication schemes, and fully respects role-based access control.

If the team scales from 100 to 300 people, it's not a problem at all. Whereas setting up new permissions used to take hours, with Directus, it’s a two-minute change.

Wayne Eldridge

Wayne Eldridge

Founder, Enamic

Combine with other tools in the Directus toolkit.

Whether you specialize in frontend, backend, or fullstack, you'll get a suite of dev tools that'll make you even more efficient.

Editor

Editor

Create and manage data in custom extensible forms.

Connect

Connect

Generate REST and GraphQL APIs for any database.

Realtime

Realtime

Sync live data over WebSockets and GraphQL Subscriptions.

Building out the backend with Directus was really fast, and the platform has everything we needed – security, users, roles, permissions and more.We simply could not have delivered this amount of value for our customers with custom development only.

Martijn Boland

Martijn Boland

Co-Founder, Taiga

Read the success storyarrow_forward

Get granular with your permissions 🔐

Step into a world of seamless and secure authentication with Directus Auth. Protect your assets and provide users a friction-less login experience.

Create your projectarrow_forwardBook a demoarrow_forward
24M
Docker downloads
23K
GitHub Stars
49K
Monthly npm downloads
#3
No-Code Tool on GitHub
  • Directus Logo

    A modern backend toolkit for building anything or everything.

  • Solutions
    • Headless CMS
    • Backend-as-a-Service
    • Product Information
    • 100+ Things to Build
  • Resources
    • Documentation
    • Guides
    • Community
    • Release Notes
  • Support
    • Issue Tracker
    • Feature Requests
    • Community Chat
    • Cloud Status
  • Organization
    • About
    • Careers
    • Brand Assets
    • Contact
©2023 Monospace Inc
  • License
  • Terms
  • Privacy
  • github
  • discord
  • youtube
  • docker
  • npm
  • x
  • mastodon
  • linkedin