Using MSAL in a VS Code extension - visual-studio-code

My VS Code extension needs to authenticate with Azure DevOps in order to use its web APIs. I'm having trouble applying the React MSAL v2 web app samples to the VS Code extension platform. The component that will implement the MSAL flow is nothing but a web page in an iframe. Can anyone provide a blueprint for this?
Thanks very much for any help!

Related

Flutter SSO Okta Integration Example

I'm trying to convert my android and ios application to Flutter. In these core platform I've used OKTA authentication using WebView. this post helped me for android SAML SSO implementation.
I've gone-through OKTA documentation. I didn't see Dart and Flutter related stuff.
Any code examples appreciated - especially one showing Flutter implementation of generic SSO, if such a thing exists.
You can try using flutter_okta_sdk plugin. This implements SSO with Okta OIDC. The plugin only has support for Android and iOS though. Here's a sample that you can try out. You can follow this setup guide to get you started.

is it possible use telegram APIs in an ionic app?

can it possible use telegram APIs in ionic app?
i've just tried an instant really chat but i would use telegram for using bots for example.
if it is possible can someone help me?
thank's
CORE API.
Yes, you can easily use Ionic here, in fact the official web client is built on Angular itself! You can look at the source code here and there are several Core API libraries for JS such as telegram.link
BOT API
Yes, but you will be limited to a few functionalities. Basically your Ionic app will just be a mirror of the bot. In order to receive the message, you will have to cleverly extract the message sent to the bot and pass it to your Ionic framework, which isn't very hard. There is one Android app using a boosted bot API. There are several Web Apps and Progressive Apps using the bot API and even a java applet!

What makes nativescript better than ionic

im new to mobile development and i see ionic framework has very big community BUT
i know that ionic uses webview while nativescript generates native components
my question now what nativescript can do ionic cannot do?
in other words what is the powerful points in nativescript that does not exists in ionic
thanks in advance.
Ionic is hybrid, running inside webview which has problem with performance at particular things like even simpler animation, not fully accessible API of native part
Nativescript runs as native app, controlled by JS code but can be used even with native code or even as addon to native app and full access to API of native code

Consume secure REST API in cross-platform native app using Xamarin

Q1: Can a native cross-platform mobile app (Android/iOS/Windows) developed in Xamarin call a web service via a secure REST API (https) ?
Q2: If yes, are such calls (when compiled by Xamarin) made 'natively' or made through a webview? In other words, would there be any difference in the app's capability - can the app work as a background service etc as well as a native app?
Note #1: I've searched & found Xamarin documentation for web services: http://docs.xamarin.com/guides/cross-platform/application_fundamentals/web_services/
but there is no specific mention of https. May be the answer is there in the docs, but I'm unable to find/understand.
Note #2: One example of a secure REST-ful service would be Firebase.
You can use Firebase which saves your app data in the cloud
you can find more here and then use Firesharp to access your data in c# code.
Q1: Yes, you can.
Q2: No, no need to use webview. You can use HttpClient class for example or RestSharp library (you can found it in Xamarin components - RestSharp)

Facebook User Login in XNA-GameStudio for Windows Desktop

Is it possible to do user authentication / user-login for Facebook-Api inside a Visual Studio C# project using XNA Game Studio? I need to generate the access-token to post a message on a user's facebook wall.
Currently I managed to do it with a WinForms application using this tutorial (English):
http://blog.prabir.me/posts/facebook-csharp-sdk-writing-your-first-facebook-application-v6
or this tutorial (German)
http://frank-it-beratung.com/blog/2011/01/29/tutorial-ein-facebook-pinnwandeintrag-mit-visual-basic-oder-c-teil-2/
Its no problem with WinForms, because you can use System.Windows.Forms.Webbrowser control.
So in order to support this functionality in XNA Game Studio, do I need to embed a Winform Control in XNA? Or is there a better way?
I could embed the Winform in XNA by using this tutorial:
http://theinstructionlimit.com/how-to-properly-use-windows-forms-with-xna
You can try to use HttpWebRequest. You can google more info on how to use this method, essentially it is a direct connection to web page, the same way browser does it in background. Unfortunately it is not so easy to do and you might encounter additional facebook security barriers (as facebook does not want automated connections without web service).
There is also facebook sdk for windows store applications, but it should be possible to take some of it's code and use it for XNA.
So to answer your question - yes, there is definitely better ways to implement facebook login, but most likely much more complex than using Webbrowser control. Webbrowser should be last resort.