[Auth][OIDC] ][Options][Configuration] Missing Properties TokenEndpoint and UserInfoEndpoint for oidcAuth & WebAuthenticationOptions
Current behavior
Setting the OidcClientOptions > ProviderInformation requires entering Oidc Package Props instead of direct extensions handled from the OidcAuthorizationBuilder:
-
TokenEndpoint
-
UserInfoEndpoint
-
FilterClaims
-
Windows target seems to not provide any https:// prefixed url ? => not working for this api
-
Desktop Target Breaks on "OnLaunched" with "StackOverflowException" (no more details available)
-
Web Auth also does not have any of those Properties we could set via options/configuration
Expected behavior
these Options Members should be:
- Should be available to be configured throught IOptions
- set-able through just like
AddOidc(configure => configure.Authority(without beeing required to use theDuende.IdentityModel.OidcClientOptionsin case this package would might get replaced in any future, this direct access through the Uno Extension providedOidcAuthenticationBuilderExtensionsMethods would reduce future breaking changes on Uno Consumers - Should be also available via any non oidc specific authentication, then also with web auth, or consider adding - #2870 which could
Theoretically Workaround
set through the ProviderInformation Property like this
but still does not work using oidc on wasm!
- #2872
clicking on Login does NOTHING,
My only idea as workaround is currently to not use auth extensions at all from uno and instead just use http with EndpointOptions which will be definitely a pain in the a* or maybe I have to do something like OpenIdDict
How to reproduce it (as minimally and precisely as possible)
- Look into the documentation -> not told to be available
- Look into the src -> Not checked for
Environment
Windows 11 Pro
Nuget Package (s):
Package Version(s):
Affected platform(s):
- [x] all Platforms
- [x] Build tasks
Visual Studio:
- [x] Visual Studio 2022 17.14.9
Relevant plugins:
- [ ] Resharper (version: )
Anything else we need to know?
not missunderstand as duplicate of the oidc not working at all on wasm (tryed this on android, desktop, windows, nothing works) this is about that those Options or Settings are missing on the appsettings provided ones to be set for if we do not have a oidc then a oAuth2 api to make calls to, so you do not have any discovery endpoint.
tryed with uno sdk 6.0.146 and 6.1.23