From 61135984c1297e2c61d76018465a83d08adf506c Mon Sep 17 00:00:00 2001 From: ziomek64 Date: Fri, 15 Mar 2024 00:50:32 +0100 Subject: [PATCH] update to new extensions --- Directory.Packages.props | 38 +++++++++---------- ...WebAuthenticationBrokerActivity.Android.cs | 2 +- UnoApp6/App.cs | 7 ++-- UnoApp6/Presentation/LoginViewModel.cs | 1 + UnoApp6/appsettings.json | 2 +- 5 files changed, 26 insertions(+), 24 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a3b0370..c5a694b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,27 +1,27 @@  - - + + - - + + - - - + + + - - - - - - - + + + + + + + - - - - + + + + - + \ No newline at end of file diff --git a/UnoApp6.Mobile/Android/WebAuthenticationBrokerActivity.Android.cs b/UnoApp6.Mobile/Android/WebAuthenticationBrokerActivity.Android.cs index 220ccd1..895ba8d 100644 --- a/UnoApp6.Mobile/Android/WebAuthenticationBrokerActivity.Android.cs +++ b/UnoApp6.Mobile/Android/WebAuthenticationBrokerActivity.Android.cs @@ -9,7 +9,7 @@ namespace UnoApp6.Droid; [IntentFilter( new[] { Android.Content.Intent.ActionView }, Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable }, - DataScheme = "myprotocol")] + DataScheme = "myapplication")] public class WebAuthenticationBrokerActivity : Uno.AuthenticationBroker.WebAuthenticationBrokerActivityBase { } diff --git a/UnoApp6/App.cs b/UnoApp6/App.cs index 7e0e1a1..0621f82 100644 --- a/UnoApp6/App.cs +++ b/UnoApp6/App.cs @@ -53,9 +53,10 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args) .Section() ) - .UseAuthentication(auth => - auth.AddWeb() - ) + .UseAuthentication(builder => + { + builder.AddWeb(); + }) .ConfigureServices((context, services) => diff --git a/UnoApp6/Presentation/LoginViewModel.cs b/UnoApp6/Presentation/LoginViewModel.cs index 5c1196a..ba6edd2 100644 --- a/UnoApp6/Presentation/LoginViewModel.cs +++ b/UnoApp6/Presentation/LoginViewModel.cs @@ -24,6 +24,7 @@ private async Task DoLogin() { var success = await _authService.LoginAsync(); Console.WriteLine("Login"); + Console.WriteLine(success); } public string Title { get; } = "Login"; diff --git a/UnoApp6/appsettings.json b/UnoApp6/appsettings.json index 48d541b..8e28181 100644 --- a/UnoApp6/appsettings.json +++ b/UnoApp6/appsettings.json @@ -4,6 +4,6 @@ }, "Web": { "LoginStartUri": "https://anilist.co/api/v2/oauth/authorize?client_id=15408&response_type=token", - "LogoutStartUri": "https://anilist.co/api/v2/oauth/authorize?client_id=15408&response_type=token" + "LogoutStartUri": "myapplication:/authentication-callback" } }