Comments (11)
Looks like there are two PRs for this. #146, and then #153, both by @damieng. does not look like it has had much movement unfortunately.
In our project this appears to be the only library holding us back to not having to use the migration packages anymore.
from auth0-oidc-client-net.
@damieng try this: Android.zip I just took the code from this repository and set Target Framework to Andorid 10. Also removed all project references and replaced them with the NuGet package reference to Auth0.OidcClient.AndroidX.
from auth0-oidc-client-net.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! πββοΈ
from auth0-oidc-client-net.
Any ETA on this?
from auth0-oidc-client-net.
We are having the same issue while trying to migrate to the Auth0.OidcClient.AndroidX package.
When trying to build it produces the following error:
"Can not resolve reference: Xamarin.Android.Support.CustomTabs
, referenced by Auth0.OidcClient
. Please add a NuGet package or assembly reference for Xamarin.Android.Support.CustomTabs
, or remove the reference to Auth0.OidcClient
."
I had a look at the commit that was merged in #153, which adds the following two references to the AndroidX package:
<PackageReference Include="IdentityModel.OidcClient">
<Version>3.1.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Browser">
<Version>1.0.0</Version>
</PackageReference>
But if you have a look at the latest version of the Auth0.OidcClient.AndroidX on the official nuget server, those two depedencies are not listed in the latest package version (3.1.5), as can be seen here:
https://www.nuget.org/packages/Auth0.OidcClient.AndroidX/
Maybe no new version of the package was created after the merge of #153, or something went wrong while building the nuget?
Our current workaround was to integrate the complete Auth0.OidcClient.AndroidX project into our own solution. Then it works because dependencies are pulled correctly.
from auth0-oidc-client-net.
@Schmaga Yes, you can install the latest version of the second nuget package, but you'll still need to add the CustomTabs packages, which is not a solution at all. I still don't get why this takes that long and we still don't have any official release. :/
from auth0-oidc-client-net.
I just created a brand new regular Xamarin Android app (not Xamarin Forms) and added Auth0.OidcClient.AndroidX via Nuget then added a couple of lines to start the login process and it started fine with no additional errors.
Are you both using Xamarin Forms?
from auth0-oidc-client-net.
Additionally @Schmaga the IdentityModel.OidcClient is not needed as a dependency in Auth0.OidcClient.AndroidX or indeed any of the Auth0.OidcClient's except the .Core one which is a dependency of the others and so bring it in transitively.
I was wondering whether the Xamarin.AndroidX.Browser was required but the test I just did showed that for a regular Android project using Auth0.OidcClient.AndroidX that dependency was not required - indeed Auth0.OidcClient.Android also does not specify Xamarin.Android.Support.CustomTabs and nobody has reported issues on that.
Xamarin Forms has never been supported by this library. While theoretically the iOS and AndroidX libraries would potentially work by adding each to the platform-specific projects it is not clear how the state or protocol handler flow would be plumbed through the default Xamarin Forms template architecture.
from auth0-oidc-client-net.
Thanks for that, I think I've found the problem and I have a fix.
from auth0-oidc-client-net.
@damieng Yes, the issue happens on Forms. Here's another sample project - I've just created a new Xamarin.Forms solution and retargeted the Android SDKs to Android 10. As soon as I add the Auth0.OidcClient.AndroidX package, the solution won't build.
TestAndroidXBindings.zip
from auth0-oidc-client-net.
Using Auth0.OidcClient.AndroidX
worked for me. Thanks guys!
from auth0-oidc-client-net.
Related Issues (20)
- Browser closing too quickly to save password HOT 4
- System.ArgumentException if using the same dictionary object as "extraParameters" argument in the "LoginAsync" function to log in multiple times HOT 3
- Impossible to login anymore, any recent breaking change ? HOT 10
- federated logout is not working on WinForms HOT 7
- Android Auth0Client Throwing Errors on Login: Error loading discovery document: Error connecting to https://<url>/.well-known/openid-configuration. The SSL connection could not be established HOT 5
- Scope set to null when calling RefreshTokenAsync HOT 14
- Login browser appears again after successfully login on Xamarin Forms (Android) HOT 12
- Token validation error (Android) HOT 4
- Uninstalling the app without logging out didn't clear the browserβs session cookie (Xamarin Android) HOT 1
- Error processing method: 'System.Void Auth0.OidcClient.Auth0ClientBase/<RefreshTokenAsync> HOT 2
- Auth0.OidcClient.WPF HOT 3
- Package Auth0.OidcClient.iOS 3.3.7 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0). Package Auth0.OidcClient.iOS 3.3.7 supports: xamarinios10 (Xamarin.iOS,Version=v1.0) HOT 15
- Error loading discovery document: Error connecting to https://yourDomain/.well-known/jwks.json HOT 8
- JsonSerializationException in .Net 7 for iOS Project HOT 2
- LogoutAsync Headless Browser Option HOT 5
- Documentation: Readme documentation link is broken HOT 1
- An option to open the Webview in full screen ( Maximized ) using Auth0.OidcClient.WPF HOT 1
- What does BrowserResultType.UserCancel indicates? HOT 8
- Error getting configuration for JWK in Auth0.OidcClient.Tokens because of incorrect metadataAddress (/.well-known/openid-configuration) HOT 1
- Allow environment override for WebView2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0-oidc-client-net.