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.
Related
We are developing a cross platform mobile application using Xamarin. I have noticed there are different ways of structuring your code using Shared code or PCL/.net standard.
I attempted to use .net standard and what i have found is that it doesn't include all the libraries such as using ado stuff , datatable/datasets using system.data. Or using system.net for example. Other functions have less overloads and seems that its a stripped version of .net to work across platforms. Is there any way to add this functionality or use a broader range of .net?
You are correct - .Net Standard and .Net Core are stripped down versions of the full .Net framework. They contain only features that can be used on all platforms (Mac, Android, iOS, Linux, Windows, etc.)
The full .Net framework only needs to work on Windows, so there are additional things that you can do based on the fact that there is less complexity in implementing and that the code base is more mature (cross platform is still pretty new by C# standards). To the best of my memory, System.Net should work if you have your references correct, but System.Data will not (or at least direct database access is not possible)
You can regain some functionality through NuGet packages, but it won't be the same as using WinForms or something like that...
My best advice would be to program against an API. You can use a web server that runs on the normal (full) .Net framework, and does all the heavy lifting using all the .Net features that you are accustomed to. Your Xamarin app would send and receive data from the API and basically provide a mobile front end for whatever you are doing. This approach makes sense for most apps anyway, and is generally what you would be doing anyway if you used Swift and Java to create separate iOS and Android apps.
I want to introduce 'Zendesk' chat support in my application. I have tried to search but not get the process of including. Please suggest any idea. Thanks in advance.
Zendesk documentation appears to only indicate native support for Android and iOS. Xamarin can link the SDKs individually for each build -- see Xamarin documentation for this (links included but not summarized due to length), but won't handle bridging the difference between the two. Windows will not be supported by this option. If you only want to target Android and iOS, you can use these options and create wrapper classes with a common interface.
Alternatively, if you badly need Windows support and are comfortable with web technologies, the web sdk offers a full api. Xamarin forms supports a webview in which you can load the web sdk, and either build a GUI in the webview or make api calls via the web sdk.
Links detailing including native libraries:
https://developer.xamarin.com/guides/android/advanced_topics/using_native_libraries/
https://developer.xamarin.com/guides/ios/advanced_topics/native_interop/
Note -- above link is specifically for native libraries, which I believe is correct for Zendesk's SDK. If not, there is also a guide for objective-c libraries on the Xamarin website.
I have a vague recollection of reading somewhere in Microsoft's documentation (it might have been to do with BLE APIs), that some APIs are only available to apps downloaded from the Windows Store. I just searched again and can't find anything. Did I misremember or is this the case for some APIs?
I'm not aware of any APIs that aren't available in a side-loaded application, but APIs from the Windows.ApplicationModel.Store for example may not function in a meaningful way (like ListingInformation wouldn't be useful).
I want to build Web API project using with seperate Model class library. But I have confused about ClassLibrary and PortableClassLibrary. Which library is perfect for web api project.
Portable class libraries help you if you are developing cross platform apps / libraries. For an example if you are developing Windows Phone / Windows 8 / WPF / Silverlight apps and these apps consume data through Web API that you are developing right now, most probably you want to use same model classes you are having in your Web API project. In such scenario portable libraries will help you reduce the time and costs of developing and testing code.
But if you are developing your API for third parties that you are not aware of (do not have control over), or you want to consume these APIs from non .NET platforms (such as Web pages , android, iOS etc..) then you would not want your model library to be portable.
Follow this MSDN article for more details
I am making windows 8 application using c++/cx but i am not able to get how to include azure feature in my app,every where tutorials is given in c# but nowhere i can find tutorial in c++/cx.
As most of the samples written in managed code to access Windows Azure Mobile Services, It is trues that there are no samples available in C++/C. However it does not mean you could not do it. Keep in mind you would need to do extra work to get it done.
As Windows Azure Mobile Services use RESTful interface so you can access them from any language as long as you can call REST api from there. Here is the documentation for Windows Azure Mobile Services REST Api.
With C++/C you just need to search and find an appropriate framework to call REST api and once you have that working just call Windows Azure Mobile TEST Api to achieve your objective.
This blog post has some examples of how to perform various Azure Mobile Services tasks using C++ for Windows 8.1 Store apps. The IDE tooling mentioned in that post is not available for Windows 8 apps.