<?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 net]]></title><description><![CDATA[A list of topics that have been tagged with net]]></description><link>https://fusionauth.io/community/forum/tags/net</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 23:17:13 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/tags/net.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[JWT Validation Issues with RSA-SHA256 and JwtBearer Middleware (.NET &#x2F; C#)]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I'm facing challenges validating JWTs generated by FusionAuth using RSA-SHA256 within my .NET application using the JwtBearer middleware. I've generated a public/private key pair in the FusionAuth Key Master and configured my application as follows:</p>
<pre><code class="language-cs">public static void AddFusionAuthentication(this IServiceCollection services)
{
    var fusionAuthSettings = services.BuildServiceProvider().GetRequiredService&lt;IOptions&lt;FusionAuthSettings&gt;&gt;().Value;
    byte[] publicKeyBytes = Convert.FromBase64String(fusionAuthSettings.IssuerSigningPublicKey);
    
    services
        .AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
        .AddJwtBearer(opt =&gt;
        {
            opt.Authority = fusionAuthSettings.FusionAuthUrl;
            opt.Audience = fusionAuthSettings.ClientId;
            opt.IncludeErrorDetails = true; // for debugging

            opt.TokenValidationParameters = new()
            {
                ValidateIssuer = true,
                ValidIssuers = [fusionAuthSettings.Issuer],
                ValidateIssuerSigningKey = true,
                IssuerSigningKey = new SymmetricSecurityKey(publicKeyBytes)
            };
        });

    services.AddAuthorization(options =&gt; { });
}
</code></pre>
<p dir="auto">However, I'm encountering two unexpected scenarios:</p>
<ol>
<li>The JWT validation succeeds regardless of the value I set for IssuerSigningPublicKey.</li>
<li>Even when using the correct public key from FusionAuth, JWTs signed with different keys are still validated successfully.</li>
</ol>
<p dir="auto">It seems like the signature validation isn't working as expected.</p>
<p dir="auto">Has anyone else encountered similar issues? Could there be a configuration problem in FusionAuth or my .NET application? Any guidance or suggestions for troubleshooting would be greatly appreciated.</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2707/jwt-validation-issues-with-rsa-sha256-and-jwtbearer-middleware-net-c</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/2707/jwt-validation-issues-with-rsa-sha256-and-jwtbearer-middleware-net-c</guid><dc:creator><![CDATA[chukwuemekai]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Angular and .NET - totally confused]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2997">@alan-rutter</a></p>
<p dir="auto">Thank you for your answer, I will check that out, but it is really blurry in my mind as of now!</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2670/angular-and-net-totally-confused</link><guid isPermaLink="true">https://fusionauth.io/community/forum/topic/2670/angular-and-net-totally-confused</guid><dc:creator><![CDATA[tanguy.e]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>