Closed mohsinraza-10P closed 1 year ago
Did you configure your domain? As I can see the stacktrace mentions Error connecting to https://yourDomain/.well-known/jwks.json
, which does not contain your domain? And the stacktrace mentions it cant find that link, which makes sense.
@frederikprijck Yes I've already configured the domain but I've intentionally kept a placeholder into the StackTrace since its confidential and I cannot disclose it. As I mentioned into the description its working as expected on DEBUG build but only causing issue on RELEASE build.
Can you verify you can access the link ?
@frederikprijck Yes I can access the link.
FYI only, I might get back to you further on this thread by Monday, 31 July so please do not close this one due to inactivity during this time. Thanks
Can you please provide a reproduction sample based on our samples application for us to look into? That will make it easier to look into.
Based on the fact that it works in debug, and you can access the link yourself, I would think the linker is causing issues and it might not be caused to our SDK.
Hey @frederikprijck - I got a chance to look at the sample application's link mode for Android & iOS. Both have "SdkOnly" value instead "Full". I think it won't be reproducible on the sample application.
For my use case the link mode is set to Full i.e. Link All and I'm not able to figure it out which assembly I'm missing to include it here in the configuration. If you can assist regarding this, it would be grateful.
Sorry for the delayed response here. I am not sure I can help you assist with that if it's beyond an issue with the SDK.
If you believe there is anything wrong with the SDK, I am happy to look into it, but I believe it may be related to the project's configuration.
Closing this as I think there's not much we can do.
Checklist
Description
We implemented a sample integration of Auth0 in Xamarin.Forms application via this QuickStart guide provided in the documentation. We're currently encountering an exception (See StackTrace) which is only occurring when we build into release mode as the linking is enabled for it to reduce the size of the application. At the moment we've tried with Android platform into release mode and facing this issue. I'm attaching the StackTrace into a txt file along with the Nuget Package versions snippets we're currently utilizing in our project.
StackTrace: auth0-exception.txt
Linker Config linker.config.txt
Note: It works fine in Debug mode as linking is not enabled for Debug build.
Expected Behavior: Login functionality should work fine on release and debug builds both.
Reproduction
It can be easily reproducible by initiating login flow by this code
client.LoginAsync(options)
.Additional context
No response
auth0-oidc-client-net version
3.4.1
.NET version
.NET Standard 2.0
Platform
Android
Platform version(s)
Android: 13