Giter VIP home page Giter VIP logo

Comments (8)

roxk avatar roxk commented on June 11, 2024

@louischan-oursky I'm getting invalid device info error after authentication. Seems server is validating device info :( Should I put a dummy android device info for now? I reckon you guys wouldn't have time to update server to add a windows to device info field.

from authgear-sdk-xamarin.

louischan-oursky avatar louischan-oursky commented on June 11, 2024

You can use dummy values during development. It would be great if you can help implementing device info for Windows devices :)

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024

I'd love to but I think I don't have time to setup server development environment 😅 I will setup dummy value for now.

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024

UWP AuthenticateAsync is done. Since UWP's system authentication API uses old edge's engine (spartan) which is no longer supported by most sites (authgear is tested to be unsable), system browser is used instead.

Still working on Uno WASM support and it requires major code structure change as there is no specific WASM TFM. To reference Uno's polyfill of Windows API, a special project Authgear.Xamarin.Wasm is created side-by-side with the original project to create a cross-runtime library. Essentially, it's an additional binary built with uno's windows API polyfill located in a specific folder in the nuget. I have not tested how it works but I guess uno has specific build time logic to pick the binary up.

Uno also provides Xamarin WASM support (experimental). I have created a test project but apparently cross-runtime library only works in nuget. Referencing the project doesn't work (no WASM output), and referencing the wasm project directly produces type conflict (duplicate definition). Will proceed to create local nuget to test.

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024

The local nuget can be created as expected, but the WASM specific content isn't picked up. Manually moved the nupkg to another project for consumption and again WASM specific content (e.g. AuthgearSDK constructor) isn't picked up. I have inspected the nupkg and resultant dll, can confirm the WASM specific content are all there, which means it's the build process that didn't pick it up.

Asked in discord for troubleshooting tips.

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024

unoplatform/uno#10015

Pending reply.

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024
  • Support cancellation token in UWP as it's now logging in in external browser and the app has no way to "go back"
  • Exclude uno from nupkg dependency (set private assets = all)

from authgear-sdk-xamarin.

roxk avatar roxk commented on June 11, 2024

They replied. Basically, due to WASM not being a specific TFM, there is no way to pick up WASM specific method.

The solution I will employ is to create a "general" method in .netstandard.cs that accepts object and cast the object to the correct type. WASM project can then pass any required param to the method. Unfortunate situation, yes, but workable.

from authgear-sdk-xamarin.

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.