Repository navigation
Conversation
|
@jeromelaban I seen your draft to the net10 and sometimes updated packages beside the net version. |
The change seems correct, but @carldebilly or @kazo0 will be able to tell. |
|
@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. |
|
|
|
@jeromelaban @kazo0 @carldebilly FYI: sharing a link to the appropriate migration to Duende.IdentityModel.OidcClient discussion on their GitHub repo: |
|
|
|
@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. |
|
@jeromelaban done! if that was all it wanted, it should pass now. |
|
|
|
Dont know but when using squash and push it back up, wha doesnt it reflect this on the history here? Thats strange... |
65294c8 to
1f25673
Compare
|
@jeromelaban whats left here? Seems like CI is passing? |
|
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 ? |
|
@kazo0 From my POV, we should:
|
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. |
|
@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 |
1f25673 to
bea75e1
Compare
|
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. |
|
@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 |
|
@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🤔 |
|
@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. |
|
@jeromelaban could I get a state update for eventual open ToDo on this PR? I would not know of any open Tasks for my side.
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
left a comment
There was a problem hiding this comment.
LGTM - but I think we should distance ourselves from a paying product.
|
@carldebilly In general, I absolutly agree with you, that it should not be targeted to send users path to a payed product 👍 This here is the Oidc Package License doc page: https://docs.duendesoftware.com/identitymodel-oidcclient/#license-and-feedback
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 👀 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! 🚀 |
|
@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 |
There was a problem hiding this comment.
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) toDuende.IdentityModel.OidcClient(v6.0.1) - Updates all namespace imports to use the new
Duende.IdentityModel.OidcClientnamespace - 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 |
|
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. |
|
@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 🤷 |
|
@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)? |
|
@DevTKSS I believe you will just need to rebase your branch on the latest |
…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
…hentication Co-authored-by: Steve Bilogan <[email protected]>
… 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.
Co-authored-by: Steve Bilogan <[email protected]>
…targets Maybe there should be added some information about the oAuth2Manager for windows target in the future.
37f21a0 to
738afbd
Compare
|
@kazo0 rebase complete, should be ready to go 🚀 |
|
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! 👍 |
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?
What is the current behavior?
Currently used Package
IdentityModel.OidcClientwas 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 Runresults.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:
Internal Issue (If applicable):