Comments (8)
@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.
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.
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.
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.
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.
Pending reply.
from authgear-sdk-xamarin.
- 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.
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)
- Add FxCopAnalyzer
- Investigate enabling C# 9.0 for init getter HOT 1
- Remove state in reauthenticate result
- Add test for double-checked locking with ReaderWriterLockSlim in .net 5 and mono HOT 1
- Description of BiometricAccessConstraint[ios/Android] are required for API References
- Update demo app to support oauthProviderAlias
- discrepancy in BiometricOptionsAndroid with other SDKs
- Project file contains redundant file references
- Publish 0.6.1 to nuget
- SDK Support MAUI
- Support LAPolicy
- doc: Document shared project
- ci-cd: Investigate using net6 to build netstandard2.0 Authgear.Xamarin
- maui: Decide on the namespace of Authgear.Maui
- Support ssoEnabled
- Fix sessionState not changed when refresh token is detected as invalid
- Support app2app in Xamarin
- [Demo app] Show all attributes in "Get UserInfo"
- [Xamarin SDK] iOS biometric flags not supported in simulator
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 authgear-sdk-xamarin.