Skip to content

BREAKING CHANGE: OIDC depreciated dependency switch to current - #2733

Merged
kazo0 merged 8 commits into
unoplatform:mainfrom
DevTKSS:oicd-depreciated-dependency-switch-to-current
Oct 2, 2025
Merged

kazo0 merged 8 commits into
unoplatform:mainfrom
DevTKSS:oicd-depreciated-dependency-switch-to-current

Conversation

@DevTKSS

@DevTKSS DevTKSS commented Apr 20, 2025 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #

maybe related to #2716 #2686 #2640 #2584 (same old package mentioned by @kazo0 )

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes
  • Other... Please describe: Dependency update

What is the current behavior?

Currently used Package IdentityModel.OidcClient was rebranded, "old" github repo archived:
https://github.com/DuendeArchive/IdentityModel.OidcClient?tab=readme-ov-file

What is the new behavior?

https://www.nuget.org/packages/Duende.IdentityModel.OidcClient
Updated Dependency

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs

    Unable to run tests, vs 2022 throws error CS0227 (unsafe code ?) and CS0006 (metadata dll not found of the included extensions projects)

  • Docs have been added/updated which fit documentation template. (for bug fixes / features)

  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)

  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.

  • Contains NO breaking changes

  • Updated the Updating Docs

  • Associated with an issue (GitHub or internal)

Other information

Evaluate to also use the Extensions nuget mentioned in their new Repository for Oidc, could enhance developers expirience by prevent problems https://www.nuget.org/packages/Duende.IdentityModel.OidcClient.Extensions#readme-body-tab
Copyed text:

Duende.IdentityModel.OidcClient.Extensions adds features to Duende.IdentityModel.OidcClient that are implemented using more dependencies than are required in the core Duende.IdentityModel.OidcClient package. Distributing these features separately helps prevent certain transitive dependency problems.

Internal Issue (If applicable):

@DevTKSS

DevTKSS commented Apr 22, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban I seen your draft to the net10 and sometimes updated packages beside the net version.
Did you recognize the author of the IdentityModel.OidcClient the main uno repo (SamplesApp for example) is using, has been rebranded? I am not soo deep into nuget topic so just a point to consider on the way 👍

@jeromelaban

Copy link
Copy Markdown
Member

@jeromelaban I seen your draft to the net10 and sometimes updated packages beside the net version.
Did you recognize the author of the IdentityModel.OidcClient the main uno repo (SamplesApp for example) is using, has been rebranded? I am not soo deep into nuget topic so just a point to consider on the way 👍

The change seems correct, but @carldebilly or @kazo0 will be able to tell.

@DevTKSS

DevTKSS commented May 14, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban I only changed the namespaces, no future checks in things like they might changed also the content of their functions maybe. I think the Oicd is also somewhere in the other packages like uno.ui repo and also the docs would then need some updates, just for the note.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 168434 has failed on uno.extensions.

@DevTKSS

DevTKSS commented Jun 14, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban @kazo0 @carldebilly FYI: sharing a link to the appropriate migration to Duende.IdentityModel.OidcClient discussion on their GitHub repo:

https://github.com/orgs/DuendeSoftware/discussions/92

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 168594 has failed on uno.extensions.

@jeromelaban

Copy link
Copy Markdown
Member

@DevTKSS it seems that the change is not validating properly. It would be best if you could squash the history of your PR and have a single commit so it does not interfere with recent package changes.

@DevTKSS

DevTKSS commented Jun 17, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban done! if that was all it wanted, it should pass now.
Is there a specific reason for the Package Microsoft.Extensions.Hosting.Abstractions in Directory.Packages.props to not be on the current 9.0.6 version? Are there known problems with this version?

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 168669 has failed on uno.extensions.

@DevTKSS

DevTKSS commented Jun 17, 2025

Copy link
Copy Markdown
Contributor Author

Dont know but when using squash and push it back up, wha doesnt it reflect this on the history here? Thats strange...

@DevTKSS
DevTKSS force-pushed the oicd-depreciated-dependency-switch-to-current branch from 65294c8 to 1f25673 Compare June 19, 2025 13:23
@DevTKSS

DevTKSS commented Jun 26, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban whats left here? Seems like CI is passing?

@kazo0

kazo0 commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

This change seems good to me, just want to double check for any implications I'm not thinking of for compatibility going forward? @carldebilly / @nickrandolph ?

@DevTKSS

DevTKSS commented Jun 27, 2025 •

Copy link
Copy Markdown
Contributor Author

@kazo0 From my POV, we should:

  1. add a following PR that would update the OidcClient and auth docs according to this pr here please
  2. I did see that the uno.sdk/packages.json file in the main repo is listing the extensions here as group -> just to make sure the eventual internal usages are up to date also there and will not fail, do you have and opinions or test you may can run to check this would do fine as the sdk pulls it all together?
  3. Move the community tutorial for openid connect, that's using and showing this feature in action, to this extension repo docs instead, so someone who clicks on "Edit this file" will directly be in the appropriate Repository to see the OSS nature sourcecode if this one would like to contribute to this extension?
  4. In the latest "Detailed" msbuild output produces by the VS2022 extension I think there was also something woth oidc, but not sure. Just to add a quick check if there is something required to update?
  5. Add this applyed dependency update to Uno.Samples Repository - To Check list to point this out for the uno team/ contributors enhancing and maintaining them, that as soon as this here is merged and released, there will be a update required to make there too
  6. Add a short Notice for this to the "Updating to newer uno (Extensions?) version"-Docs to let consuming developers know about this as they might pulled in the "old" nuget which has extension packages.
    6.1.This would also be relevant, as I did see on the discord and main repo (not remembering exactly the issue/request number but I think I did already link it here) some people ask about this old dependency to make problems.
    6.2. Evaluate that this problems this one had should may get checked to be caused on this old package here and eventually add a Troubleshooting note that would recommend to update to this to be created version to solve that
  7. May Check the other uno repo's with a quick GitHub file or text search for beeing using this and update there too.

@DevTKSS DevTKSS mentioned this pull request Jun 27, 2025
8 tasks done
@jeromelaban

Copy link
Copy Markdown
Member

This change seems good to me, just want to double check for any implications I'm not thinking of for compatibility going forward? @carldebilly / @nickrandolph ?

This is a breaking change, because it's moving to a new namespace, and this force users to move when upgrading to whichever uno.sdk version will be used. We'll need to add that to the docs.

The commit from this PR should also be using the conventional commit breaking changes notation so it's visible in the release notes.

@DevTKSS

DevTKSS commented Jun 27, 2025 •

Copy link
Copy Markdown
Contributor Author

@jeromelaban 👍 will reword it. Is the conv. commit scope fine as is or do you want something else if I am on that? Maybe chore scope is too low as for a breaking change 😅 but its not a fix in general and adds no "new" feature 🤔 the conventional commits homepage does not introduce a scope for dependencys. then I would name it deps(OidcClient)!: and some maybe more telling message if there may be one...

@DevTKSS
DevTKSS force-pushed the oicd-depreciated-dependency-switch-to-current branch from 1f25673 to bea75e1 Compare June 27, 2025 17:34
@DevTKSS

DevTKSS commented Jun 27, 2025

Copy link
Copy Markdown
Contributor Author

updated commit to match the conventional commit format according to @jeromelaban your request. let me know if that fitts. I dont know if the notes would take the Description or the title of the commit message.

@kazo0

kazo0 commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

@DevTKSS We would also need to add a section to the upgrading docs for Extensions to call this out for the next release: https://github.com/unoplatform/uno.extensions/blob/main/doc/Learn/UpdatingExtensions.md

@DevTKSS
DevTKSS requested a review from kazo0 June 27, 2025 23:16
@kazo0 kazo0 changed the title Oicd depreciated dependency switch to current BREAKING CHANGE: OIDC depreciated dependency switch to current Jun 28, 2025
Comment thread doc/Learn/UpdatingExtensions.md Resolved
Comment thread doc/Learn/UpdatingExtensions.md Resolved
Comment thread doc/Learn/UpdatingExtensions.md Resolved
Comment thread doc/Learn/UpdatingExtensions.md Resolved
@DevTKSS

DevTKSS commented Jun 28, 2025 •

Copy link
Copy Markdown
Contributor Author

@kazo0 speaking of next major for this, do you see any chances we could maybe enhance the oidc auth feature(maybe by adding another extension?) with the ability to use the oidc extensions for DPoP? Or is there no problem already using it with the current one? Dont know if uno did override or wrap their implementation of it🤔

@DevTKSS

DevTKSS commented Jul 1, 2025

Copy link
Copy Markdown
Contributor Author

@kazo0 added some additional content to the identityServer there, as we are currently having very few server project related docs and the credential handling the docs are introducing us to, is not including the usage of IdentityServer project as server side and more secure way also, to do this in our apps. Its not meant as "advertising" than more pointing the reader out to a best practice. If this should get more reworded to correctly point that out, let me know. I just used their docs definition of the identityserver package.

@DevTKSS

DevTKSS commented Jul 5, 2025

Copy link
Copy Markdown
Contributor Author

@jeromelaban could I get a state update for eventual open ToDo on this PR?
Will be at vaccation next week, so I am trying to finish the outstanding Tasks on my list if possible.

I would not know of any open Tasks for my side.

  • all conversations closed
  • merge to main planned for next major extensions release
  • Applyed all requested changes - @kazo0 did you check on the additions from this latest commit? Is it fine or do you want something reworded?

Could you tag me if you want the branch to be updated for then the actual merge or is that not required to be updated?

@carldebilly carldebilly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but I think we should distance ourselves from a paying product.

@DevTKSS

DevTKSS commented Jul 7, 2025

Copy link
Copy Markdown
Contributor Author

@carldebilly In general, I absolutly agree with you, that it should not be targeted to send users path to a payed product 👍
Just one Detail, I am not sure if this applyes for the Oidc Client and other OSS filed packages of them, so maybe you would be able to check this with better knowledge and better understanding of english than me as native german person:

This here is the Oidc Package License doc page: https://docs.duendesoftware.com/identitymodel-oidcclient/#license-and-feedback
which is filing it as Apache 2.0, which is from what I did learn this year, free ? or are there pitfalls I do miss?
also the AccesstokenManagement Package does look promising for me 🤔
IdentityServer and BFF is payed, thats true, but as I were pointing them to some outdated and missunderstandable documentation details of them, Maarten of their Team did respond to my request of what limitations the "CommunityLicense" is filed below of those payed ones:

Hi Sonja,

If you are under $1 million in revenue, you can use the community license (will need to request it via https://duendesoftware.com/products/communityedition)

Kind regards,
Maarten

I hope, you might be able to clear those details up and beware me from a pitfall 😅

I am currently checking out those Packages because I did see the oidc here implemented from Uno, for the target, to use them alongside of my Uno App for the Server Side on the ASP Net Core side 👀
I would not be aware of any good practice alternative for those and as the Uno Docs are only showing this for oAuth2 or OpenID Connect AND the Microsoft Docs for Auth like also for Kiota to an external auth requiring api, are kind of always using Maui / Blazor & Razor Pages 🤔 Is the target, that Uno App Developers are getting send to those Frameworks and codebases? I dont know 🤷

So if you now recommend to consider not to point to at some point maybe payed products, I would absolutly love to get usable alternatives 😍 Maybe we shold then instead point them to those, which would be in my opinion a great plan! 🚀

@DevTKSS

DevTKSS commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor Author

@jeromelaban so after @carldebilly comment, I am not sure, if an update of dependency makes sense if this might get dropped completly 🤔 maybe the microsoft mentioned identityProvider oAuth0 could be an option and it seems to be a non-paided product at first look. here is for example the Authentication docs of them: https://auth0.com/docs/get-started/authentication-and-authorization-flow
maybe someone wants to check them out to evaluate?
UWP / WPF sample of them:
https://github.com/auth0/auth0-oidc-client-net

Copilot AI review requested due to automatic review settings July 27, 2025 14:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the OIDC authentication dependency from the deprecated IdentityModel.OidcClient package to the current Duende.IdentityModel.OidcClient package. The original package has been archived and rebranded by Duende Software.

  • Updates package references from IdentityModel.OidcClient (v5.0.0) to Duende.IdentityModel.OidcClient (v6.0.1)
  • Updates all namespace imports to use the new Duende.IdentityModel.OidcClient namespace
  • Adds migration documentation for developers upgrading to Extensions 7.0

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Directory.Packages.props Updates package version reference for OIDC client
testing/TestHarness/Directory.Packages.props Updates package version reference for test harness
src/Uno.Extensions.Authentication.Oidc/Uno.Extensions.Authentication.Oidc.WinUI.csproj Updates project package reference
src/Uno.Extensions.Authentication.Oidc/*.cs Updates namespace imports from IdentityModel to Duende.IdentityModel
doc/Learn/UpdatingExtensions.md Adds migration guide for the breaking change
doc/Learn/Authentication/HowTo-OidcAuthentication.md Updates documentation references and improves formatting

@digger73

Copy link
Copy Markdown

Any update on this or should we just implement the OIDC ourselves instead of relying on UNO's ? As currently logout is not supported towards for example keycloak which needs a id_token_hint #2716 Been an open issue for some time now and the initial request also showed the solution for the old library.
This solution presented here uses a free library, so either it should be fixed in the old implementation or move on to this or completely removed the OIDC support from UNO if it doesn't get the attention needed to be fully working.

@DevTKSS

DevTKSS commented Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

@digger73 agreeing with you... I would not know of outstanding tasks on this PR also. But I recognized them looking for replacing oidc and implementing oauth2Manager from the WinAppSDK for desktop but no progress. Also possible could be to use OpenIdDict which would I think also have oidc Support but I tryed that and this is failing because of Uno is staying put on old xamarin Browser Package which would be required for their SystemIntegration package and this Xamarin package is listed as not just to be updated in the contribution docs, so the team has to do it.

I tryed to just implement oAuth that should have as base of oidc definitely support on oidc but its absolutely hopeless even to define a) an similar webAuth provider replicating and altering the WebAuth we have for it, or b) registring an Custom Auth Provider, no chance to get it registered and provided in my app at runtime🤷

I did now just remove the Uno Auth extensions usage completely from my Project, as over month there is absolutely no progress to recognize from the team and putting up issues is no progress in my opinion, its just telling that they are aware of it beeing needed from the community 🤷
I will just do as you suggested and import the required packages that they are not blocking😑 hoping that I will find some, maybe have to say goodbye to the mobile targets for this... And write my own implementation for authentication.

@kazo0

kazo0 commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

@digger73 / @DevTKSS apologies for the delays on this

I am still seeing some CI failures for this PR that will need to be addressed

Once it's passing we can merge and get the ball rolling on the new Auth changes we have planned

@DevTKSS

DevTKSS commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor Author

@kazo0 only on Mobile right now but the first two github ci/cs failures are about WebView2 and this is in no relationship to those changes.

Some weeks ago there had been always ci/cd failures because of hosting ectensions seem to miss xml docs which somebody seems to have set to enforce or whatever. I am unfamiliar with setting up ci/cd so its just guessing.

Could you please check if the failures are about the made changes and let me know what I have to adjust? I will be on vacation and not taking along my laptop up from Saturday, so we could have this fixed if needed before if you can check until tomorrow evening (me beeing in Europe Berlin time)?

@kazo0

kazo0 commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

@DevTKSS I believe you will just need to rebase your branch on the latest main branch of the repo

DevTKSS and others added 6 commits September 25, 2025 18:33
…nde.IdentityModel.OidcClient

BREAKING CHANGE: The rebranding of this dependency introduces a movement to a new namespace and this forces users to move too, alongside upgrading the Uno.Sdk
… Server option of Uno Templates

The changed link were linking to the products and by that selling side, but as we are linking someone who is reading a Tutorial documentation, it is definitely more useful to link instead to their appropriate docs.
…targets


Maybe there should be added some information about the oAuth2Manager for windows target in the future.
@DevTKSS
DevTKSS force-pushed the oicd-depreciated-dependency-switch-to-current branch from 37f21a0 to 738afbd Compare September 25, 2025 16:45
@DevTKSS

DevTKSS commented Sep 25, 2025

Copy link
Copy Markdown
Contributor Author

@kazo0 rebase complete, should be ready to go 🚀

Comment thread doc/Learn/UpdatingExtensions.md Resolved
@DevTKSS

DevTKSS commented Sep 27, 2025

Copy link
Copy Markdown
Contributor Author

will be back from my vaccation up from the 6th October, so @team feel free to change as you need in the time inbetween to finish this up 🚀 keep doing great things! 👍

@kazo0
kazo0 merged commit 6d7ad94 into unoplatform:main Oct 2, 2025
@DevTKSS
DevTKSS deleted the oicd-depreciated-dependency-switch-to-current branch October 4, 2025 13:58
@kazo0 kazo0 mentioned this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants