<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with design]]></title><description><![CDATA[A list of topics that have been tagged with design]]></description><link>https://fusionauth.io/community/forum/tags/design</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 03:06:04 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/design.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[How to model OAuth2 system using Tenants, Entities, and Entity Types?]]></title><description><![CDATA[<p dir="auto">For modeling an OAuth2 system in FusionAuth, here are the key architectural considerations:</p>
Tenants

Use <strong>separate tenants</strong> when you need complete isolation between environments (e.g., different customers in a multi-tenant SaaS product, or separate production/staging environments with distinct user bases)
Use a <strong>single tenant</strong> when your users and applications share the same authentication realm
Tenants provide the highest level of separation — each has its own users, applications, groups, and configuration

Entities and Entity Types

<strong>Entity Types</strong> define categories of non-user objects in your system (e.g., "Device", "API Client", "Organization", "Service Account")
<strong>Entities</strong> are instances of those types (e.g., a specific device, a specific organization)
Use entities to represent OAuth2 concepts like:

Client credentials for machine-to-machine authentication
Devices in device authorization flows
Organizations or business units that own applications
Non-human actors that need permissions or relationships to users



Common Pattern
<p dir="auto">A typical OAuth2 architecture in FusionAuth might look like:</p>

<strong>Tenant</strong> = Your authentication realm/environment
<strong>Applications</strong> = Your OAuth2 clients (registered apps that can authenticate users)
<strong>Entity Types</strong> = Categories like "Organization", "Device", or "API Client"
<strong>Entities</strong> = Specific instances (e.g., "Acme Corp" as an Organization entity)
<strong>Users</strong> = End users who authenticate

<p dir="auto">The key is mapping your OAuth2 concepts to FusionAuth's primitives based on whether they represent users (User objects), applications (Application objects), or other non-user actors/resources (Entities).</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3321/how-to-model-oauth2-system-using-tenants-entities-and-entity-types</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/3321/how-to-model-oauth2-system-using-tenants-entities-and-entity-types</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>