.NET 10 Upgrade issues #521
Replies: 1 comment
|
No, you don't need a new license to run Duende IdentityServer on .NET 10. The issue is that since .NET 9, ASP.NET Core supports the use of Pushed Authorization Request (PAR) when performing OpenID Connect authentication flows, which isn't included in the feature set covered by your license. Before the upgrade, when all applications were running on .NET 8, PAR wasn't supported so this issue never surfaced. To fix the problem, you only need to add a single line when configuring Duende IdentityServer: builder.Services.AddIdentityServer(options =>
{
// Other configuration changes...
options.Endpoints.EnablePushedAuthorizationEndpoint = false;
})This change will prevent the Discovery Document from showing the PAR endpoint. When a client application then connects to perform an authentication flow, it will see that it cannot use PAR and fall back to the previous mechanism, adding the authorization parameters to the URL again. |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to upgrade to .NET 10 on an Azure App Service.
Everything is fine with .NET 8 and I was able to upgrade on my localhost with no problems, but when I deployed to our Development App Service, I started getting errors. After poking into the log file I found this:
Category: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware EventId: 1 SpanId: 3ab7f9362dd7cf06 TraceId: 38c2ce6663e14938e0cf483e5ff42d3b ParentId: 4e4dc33d19f562e8 RequestId: 40001a39-0003-eb00-b63f-84710c7967bb RequestPath: /connect/par An unhandled exception has occurred while executing the request. Exception: System.Exception: A request was made to the pushed authorization endpoint. Your license of Duende IdentityServer does not permit pushed authorization. This features requires the Business Edition or higher tier of license.
Are we required to upgrade our license to run .NET 10?
Are there breaking changes / documentation for .NET 10 upgrades?
We are using the most recent version of Duende.
Please help.
My boss is disinclined to purchase a higher tier license.
All reactions