-
Notifications
You must be signed in to change notification settings - Fork 0
RevocationEndpoint not processed properly after update to OpenIdConnectConfigurationSerializer #1373
Comments
Any movement on this? I'm experiencing the same bug. |
Most likely this has to do with the fact that you're using Microsoft.IdentityModel.* packages that are newer than the ones we tested. Please make sure that the versions of these packages match with the versions IdentityServer uses. (7.1.2 assuming you're using IdentityServer 7.06) |
@simona-aveva Did my comment solve the issue for you? If not please feel free to add a comment. If it did I would like to close the issue. |
Had the same issue. Yes, seems like upgrading Microsoft.Identity.* and System.IdentityModel.* packages to 8.0.* was a problem. Downgrading them back to 7.6.0 did the trick. |
@RolandGuijt Rather than downgrade I just injected my own version of IOpenIdConnectConfigurationService with RevocationEndpoint = configuration.RevocationEndpoint, so please feel free to close the issue. |
When can we expect Duende to be compatible with version 8 of those packages? |
Can you provide an example of exactly what you/'ve done @RolandGuijt? I'm having the same issue |
@stashaway For a given version of Asp.Net Core, Duende Software follows the There is an issue to track work for .NET 9 compatibilty for the access token management library: DuendeSoftware/foss#51 @c5racing did you intend to ping @simona-aveva with your comment? |
Thank you @stashaway, I did indeed tag the wrong person, I meant @simona-aveva. Thank you for the explanation. We are in the midst of upgrading and refactoring for .NET9. We have upgraded to Identity Server Version 7.1 and still encounter this same issue. |
@c5racing I injected my own version of IOpenIdConnectConfigurationService (basically a copy of https://github.com/DuendeSoftware/Duende.AccessTokenManagement/blob/main/src/Duende.AccessTokenManagement.OpenIdConnect/OpenIdConnectConfigurationService.cs) before adding Bff services in Startup.cs and then simply changed the code in GetOpenIdConnectConfigurationAsync as such:
Hope this helps. |
Which version of Duende.AccessTokenManagement are you using?
2.1.0.0
Which version of .NET are you using?
net8.0
Describe the bug
Revocation Endpoint no longer populated correctly after to azure-activedirectory-identitymodel-extensions-for-dotnet
A clear and concise description of what the bug is.
RevocationEndpoint is now in a field in the OpenIdConnectConfiguration, no longer part of the AdditionalData as per this commit -> https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/2abca63b078a0b6b8d0e1b7fab13976387aca168/src/Microsoft.IdentityModel.Protocols.OpenIdConnect/Json/OpenIdConnectConfigurationSerializer.cs
This means that the endpoint is not returned when copying to the OpenIdConnectClientConfiguration structure in GetOpenIdConnectConfigurationAsyncOpenIdConnectConfigurationService
return new OpenIdConnectClientConfiguration
{
Scheme = configScheme,
This then causes an InvalidOperationException to be thrown in UserTokenEndpointService RevokeRefreshTokenAsync.
To Reproduce
Steps to reproduce the behavior.
Configure a revocation endpoint and try to revoke.
Expected behavior
A clear and concise description of what you expected to happen.
RevocationEndpoint is populated correctly and the RevokeRefreshTokenAsync function does not throw an exception.
Log output/exception with stacktrace
Additional context
Add any other context about the problem here.
I am very happy to produce a PR for this, just not sure about backwards functionailty.
The text was updated successfully, but these errors were encountered: