How to implement MSAL for Windows app under React Native - windows

I'm trying to find a way or a library to implement MSAL authentication for Windows under React Native application.
I found many examples with https://github.com/stashenergy/react-native-msal library but all of them for Android and iOS. I need to support Windows too.
Is there a way or a libraries for React Native to implement MSAL authentication for Windows?

Related

Which SDK to use WinUI3 or UWP for a native windows app?

For building a native windows app which can launch multiple web applications in a webview , i have tried a poc using WinUI3 .Main usecase for this is usb peripheral integrations from the webapps loaded in webview and Single Sign On . Reading more on microsoft documentation , i see some features not supported and some slowness compared to UWP. Do i need to go with UWP for a new app or is the recommendation to go with WInUI3 for a new app development .
Supported Feature List Doc - https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported
Can see WebAuthenticationBroker also in not supported list .
Any guidance on what sdk to use . UWP or WinUI3
WinUI3 is the new technology for Windows Desktop. Although it is not perfect now, but it will be improved. Currently, not all the WinRT APIs are able to be used in WinUI3 apps, but you could use win32 APIs to achieve what you want. So I'd suggest you use WinUI if you are familiar with win32 API can you use win32 API to bypass the limitations.
Compared to WinUI3, UWP is more stable. UWP could use all the WinRT APIs. But some features on UWP are not up to date. For example, some features from WebView2 controls are missing on UWP but available on WinUI like print. Another thing is that UWP apps have limitations like system isolation for accessing local files and local network resources.

Can Xamarin be used to produce a iOS, Android AND WEB app?

Xamarin is designed to create native iOS, Android, and Windows apps by coding it in C#. But can it also produce a web app?
If not, is there some solution that would enable us to do that?
You can write your backend code (services, data, domain, business logic, etc) in PCL libraries that can be shared between your Mobile apps and your website. But the web frontend would need to be written separately than the mobile front-ends.

OAuth2.0 Library Xamarin

I am searching for a library like Xamarin.Auth which is supporting not only android and iOS. I need support for all platforms like OsX, iOS, android and Windows Dekstop apps.
Is there something on the market?
This library is not complete but it is super super easy to extend. You basically just need to write the webview for Windows/OSX and you will be good to go. And I do accept pull requests! https://github.com/clancey/simpleauth

OAuth 2 with native windows app

Newbie question for someone unfamiliar with developing native Windows apps.
I'm looking for any documentation to see how one would do OAuth with a native windows app. It doesn't seem like WinHttp has documentation on this. I couldn't find much through googling either.
Are there any standard / recommended MSFT libraries that implement the OAuth client?
The application in question is being developed in C++ if that helps
The Qt Network Authorization library (in Qt 5.8 and above) provides an API that supports the OAuth 2.0 Authorization Code Grant flow for clients. For native applications, it may be prudent to subclass with an implementation containing PKCE support.

Is boost supportable with metro style app?

I have a desktop application which use boost library 1.49(that was built on msvc : 11).I want to port my desktop app to metro style.Can i use this boost library with my Metro App.
Specifically my question is that if boost uses any API that is restricted for WinRT?
Here is a list of COM/Win32 APIs that are available to a Metro style app. If the component keeps to those APIs, it will be fine for a Metro style app.

Resources