

Xamarin.Essentials 1.7 with New Web Authenticator Options and .NET MAUI Essentia...
source link: https://www.infoq.com/news/2021/09/xamarin-essentials-1-7/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Xamarin.Essentials 1.7 with New Web Authenticator Options and .NET MAUI Essentials
Sep 03, 2021 1 min read
Xamarin.Essentials
represent the critical library that enables developers to create apps that work seamlessly across various mobile platforms. Providing an easy way to access the native APIs and consume them inside of the app. Based on the number it has become one of the most widely used libraries in the .NET development environment.
Xamarin.Essentials 1.7 release is focused on critical bug fixes and enhancements to the Web Authenticator API. The WebAuthenticator
is a part of Xamarin.Essentials and an SDK that enables developers to add authentication to their apps through their own ASP.NET Core
server backend.
Along with the bug fixes for Web Authenticator, new private authentication options were added for the launch of the authentication session as private. This approach enables developers to request that no shared cookies or browsing data are available between authentication sessions, instead, it will be a fresh login session for each time it is requested.
WebAuthenticatorOptions
is now available within Xamarin.Essentials
1.7 to set it up for iOS mobile apps. The usage of it is available in the code next example:
var url = new Uri("https://mysite.com/mobileauth/Microsoft");
var callbackUrl = new Uri("myapp://")
var authResult = await WebAuthenticator.AuthenticateAsync(new WebAuthenticatorOptions
{
Url = url,
CallbackUrl = callbackUrl,
PrefersEphemeralWebBrowserSession = true
});
Another big thing that was introduced is the port of Xamarin.Essentials
into .NET MAUI and future development of it. .NET MAUI Essentials at this moment is a part of the .NET MAUI GitHub repository with active development from Microsoft and the open-source community.
To enable usage of .NET MAUI Essentials inside of the .NET MAUI app, code snippet <UseMaui>true</UseMaui>
needs to be located inside of the .csproj
file and all of the APIs are available when using Microsoft.Maui.Essentials;
the namespace is added to the code file.
We know that there are developers today that will be updating their existing
Xamarin.iOS
andXamarin.Android
apps to .NET 6 without .NET MAUI and still want to leverage all of the APIs in Xamarin.Essentials. We have you covered as well as you can add<UsingMauiEssentials>true</UsingMauiEssentials>
to your .NET 6 iOS and Android apps to bring in all of the latest APIs.
- James Montemagno, Principal Lead Program Manager, .NET Community
To follow the project development progress and next releases of .NET MAUI, the official roadmap is available on the GitHub wiki roadmap.
Recommend
-
62
James July 12th, 2019 This week marked the launch of Xamarin.Essentials 1.2 packed full of new enhancements and optimizations. The main highlight is the new file preview features enabl...
-
11
Xamarin.Essentials 1.6 preview: macOS, media, and more!Xamarin.Essentials 1.6 preview: macOS, media, and more!
-
14
Friday Five: Xamarin Essentials, Auto ML In Azure, More!%3CLINGO-SUB%20id%3D%22lingo-sub-1998693%22%20slang%3D%22en-US%22%3EFriday%20Five%3A%20Xamarin%20Essentials%2C%20Auto%20ML%20In%20Azure%2C%20More!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22l...
-
14
Access Battery and Energy Saver Information with Xamarin.Essentials192 views•Dec 21, 2020190ShareSave
-
14
Fixing Our Audio Recording with Xamarin.Essentials Permissions178 views•Dec 31, 2020150ShareSave ...
-
9
Xamarin Essentials adds all kinds of useful APIs in a single NuGet package. Let's learn the basics of Xamarin essentials as we take a look! It’s normal to use different NuGet packages to add more functionalities when we are developing...
-
13
Description Xamarin.Essentials provides developers with cross-platform APIs for their mobile applications. On this week's Essential API of the week we take a look at Screenshot API that allows you to take a screensho...
-
7
What is the difference between the way Essentia and Librosa generate MFCCs? Jul 3 ・3 min read...
-
9
Xamarin.Essentials 1.7 and introducing .NET MAUI Essentials James
-
12
협업툴 잔디jandi.com0:03 / 0:30
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK