Giter Club home page Giter Club logo

Comments (11)

beeradmoore avatar beeradmoore commented on June 3, 2024 1

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.

sstuenkel avatar sstuenkel commented on June 3, 2024 1

@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.

stale avatar stale commented on June 3, 2024

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.

mduchev avatar mduchev commented on June 3, 2024

Any ETA on this?

from auth0-oidc-client-net.

Schmaga avatar Schmaga commented on June 3, 2024

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.

mduchev avatar mduchev commented on June 3, 2024

@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.

damieng avatar damieng commented on June 3, 2024

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.

damieng avatar damieng commented on June 3, 2024

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.

damieng avatar damieng commented on June 3, 2024

Thanks for that, I think I've found the problem and I have a fix.

from auth0-oidc-client-net.

mduchev avatar mduchev commented on June 3, 2024

@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.

SuperCorks avatar SuperCorks commented on June 3, 2024

Using Auth0.OidcClient.AndroidX worked for me. Thanks guys!

from auth0-oidc-client-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.