<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Richard Víquez Pérez</title>
    <description>The latest articles on DEV Community by Richard Víquez Pérez (@richard_vquezprez_c356).</description>
    <link>https://dev.to/richard_vquezprez_c356</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2141131%2F401df8c5-bc15-4e14-bf97-b21e1b751699.jpg</url>
      <title>DEV Community: Richard Víquez Pérez</title>
      <link>https://dev.to/richard_vquezprez_c356</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/richard_vquezprez_c356"/>
    <language>en</language>
    <item>
      <title>I Brought IdentityServer Back to Life as Open Source (.NET 8)</title>
      <dc:creator>Richard Víquez Pérez</dc:creator>
      <pubDate>Thu, 20 Aug 2026 23:12:06 +0000</pubDate>
      <link>https://dev.to/richard_vquezprez_c356/i-brought-identityserver-back-to-life-as-open-source-net-8-3374</link>
      <guid>https://dev.to/richard_vquezprez_c356/i-brought-identityserver-back-to-life-as-open-source-net-8-3374</guid>
      <description>&lt;h1&gt;
  
  
  I Brought IdentityServer Back to Life as Open Source (.NET 8)
&lt;/h1&gt;

&lt;p&gt;The original IdentityServer project was commercialized. Instead of letting it die, I took the codebase, recompiled it for modern .NET, fixed what was broken, and released it as open source under the &lt;strong&gt;Apache 2.0&lt;/strong&gt; license.&lt;/p&gt;

&lt;p&gt;This is not a wrapper — it's a working identity server that I rebuilt and verified end-to-end, with two sample applications proving that multi-app SSO and per-app permissions actually work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OAuth 2.0 + OpenID Connect&lt;/strong&gt; with authorization code flow and &lt;strong&gt;PKCE&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSO&lt;/strong&gt;: one login for every app in your ecosystem&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JWT access tokens&lt;/strong&gt; scoped per application (&lt;code&gt;store.api&lt;/code&gt;, &lt;code&gt;inventory.api&lt;/code&gt;, &lt;code&gt;shared.scope&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Independent roles &amp;amp; permissions per app&lt;/strong&gt;, stored in MariaDB/MySQL&lt;/li&gt;
&lt;li&gt;Runs on &lt;strong&gt;.NET 8&lt;/strong&gt; at &lt;code&gt;http://localhost:5000&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The demo: two apps, different permissions
&lt;/h2&gt;

&lt;p&gt;The repository ships with two MVC sample apps that log in through the identity server:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;App&lt;/th&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Roles&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🏬 Tienda&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mvc.app1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;store.api&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Vendedor, Cajero&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📦 Inventario&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mvc.app2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;inventory.api&lt;/code&gt; + &lt;code&gt;shared.scope&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Almacenista, Auditor&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Here's the interesting part: &lt;strong&gt;the same user can have completely different roles in each app.&lt;/strong&gt; Alice is a &lt;em&gt;Vendedor&lt;/em&gt; in the store app and an &lt;em&gt;Almacenista&lt;/em&gt; in the inventory app. Each application queries its own database (&lt;code&gt;app1_tienda&lt;/code&gt;, &lt;code&gt;app2_inventario&lt;/code&gt;) and enforces its own policies.&lt;/p&gt;

&lt;h3&gt;
  
  
  Github: &lt;a href="https://github.com/rviquezsoft/IdentityServer8" rel="noopener noreferrer"&gt;https://github.com/rviquezsoft/IdentityServer8&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Role-based authorization in practice
&lt;/h3&gt;

&lt;p&gt;Each app registers permission policies and protects endpoints with &lt;code&gt;[Authorize]&lt;/code&gt;:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
csharp
builder.Services.AddAuthorization(options =&amp;gt;
{
    options.AddPolicy("Venta.Crear", p =&amp;gt; p.AddRequirements(
        new PermissionRequirement("venta:crear")));
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>dotnet</category>
      <category>oauth2</category>
      <category>security</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
