Installing Authentication Extensions gives errors #2193
-
Hello, Also docs mention to install Uno.Extensions.Authentication.WinUI . Why is It called WinUI at the end instead of installing just Uno.Extensions.Authentication? What If I go for mobile and material design? I need help learning how to install stuff here. I'm targetting Android only. Went for Uno because it provides Material Design 3.0 support. Maui is far behind in that terms. I'm trying to understand stuff in Uno, but it's so much less beginner-friendly, and I'm not pro dev. MS docs for MAUI are far more comprehensive. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
So I managed to do that with some other template..
Default LoginPage view:
Default viewmodel for that:
It definitely goes inside the task as it prints Login. My appsettings.json:
|
Beta Was this translation helpful? Give feedback.
-
Uno.Extensions.Authentication.WinUI should only be installed into the main class library, not into the DataContract library. Although it's got the WinUI suffix, it's compatible with all Uno targets. The WinUI suffix is used to differentiate from the UWP based libraries that Uno offers |
Beta Was this translation helpful? Give feedback.
-
@ziomek64 this PR (#2198) should address this issue. Essentially what was happening is that the configuration information wasn't being picked up, so the loginuri was null, which meant the browser wasn't being launched. |
Beta Was this translation helpful? Give feedback.
-
@nickrandolph It's just not working for me, I don't know what's wrong to be honest. Browser doesn't open. I think I upgraded packages correctly (to be honest uno packages is a mess for me coming from maui) |
Beta Was this translation helpful? Give feedback.
-
@ziomek64 the challenge we have is that we have a much wider offering that maui, meaning that package management has been an issue. With your sample application I would suggest upgrading all packages to the latest stable release, and then only update extensions to the latest dev package. |
Beta Was this translation helpful? Give feedback.
-
I've tried your sample and the issue is now that you're not specifying either a redirect uri as part of the LoginStartUri (eg I'll endeavour to add more detailed logging to the auth process to make it easier to determine what's missing in future |
Beta Was this translation helpful? Give feedback.
I've tried your sample and the issue is now that you're not specifying either a redirect uri as part of the LoginStartUri (eg
uno.extensions/testing/TestHarness/TestHarness.Shared/Ext/Authentication/Web/appsettings.webauthsettings.json
Line 3 in 978e173
I'll endeavour to add more detailed logging to the auth process to make it easier to determine what's missing in future