diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 4be69cae68..388bae509b 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -1,7 +1,7 @@ true - 200.4.0 + 200.5.0 @@ -15,24 +15,24 @@ - - - - - + + + + + - - - - - + + + + + - - + + \ No newline at end of file diff --git a/src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj b/src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj index ba0f3c1125..52cf16d57e 100644 --- a/src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj +++ b/src/MAUI/Maui.Samples/ArcGIS.Samples.Maui.csproj @@ -100,7 +100,6 @@ - @@ -108,16 +107,11 @@ - - - - - PreserveNewest diff --git a/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs b/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs index 3e34be3b1e..068fd9ece3 100644 --- a/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs +++ b/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs @@ -70,28 +70,8 @@ public static async Task EnsureAGOLCredentialAsync() public static void SetChallengeHandler() { - // Define the server information for ArcGIS Online - ServerInfo portalServerInfo = new ServerInfo(new Uri(ArcGISOnlineUrl)) - { - TokenAuthenticationType = TokenAuthenticationType.OAuthAuthorizationCode, - OAuthClientInfo = new OAuthClientInfo(AppClientId, new Uri(OAuthRedirectUrl)) - }; - - // If a client secret has been configured, set the authentication type to OAuth client credentials. - if (!string.IsNullOrEmpty(ClientSecret)) - { - // If a client secret is specified then use the TokenAuthenticationType.OAuthClientCredentials type. - portalServerInfo.TokenAuthenticationType = TokenAuthenticationType.OAuthClientCredentials; - portalServerInfo.OAuthClientInfo.ClientSecret = ClientSecret; - } - - // Register this server with AuthenticationManager. - AuthenticationManager.Current.RegisterServer(portalServerInfo); - - // Use a function in this class to challenge for credentials. - AuthenticationManager.Current.ChallengeHandler = new ChallengeHandler(PromptCredentialAsync); - - // Set the OAuthAuthorizeHandler component (this class) for Android or iOS platforms. + var userConfig = new OAuthUserConfiguration(new Uri(ArcGISOnlineUrl), AppClientId, new Uri(OAuthRedirectUrl)); + AuthenticationManager.Current.OAuthUserConfigurations.Add(userConfig); AuthenticationManager.Current.OAuthAuthorizeHandler = new OAuthAuthorize(); } diff --git a/src/MAUI/Maui.Samples/Platforms/Windows/App.xaml.cs b/src/MAUI/Maui.Samples/Platforms/Windows/App.xaml.cs index e4bdf066b4..9e05342126 100644 --- a/src/MAUI/Maui.Samples/Platforms/Windows/App.xaml.cs +++ b/src/MAUI/Maui.Samples/Platforms/Windows/App.xaml.cs @@ -14,6 +14,8 @@ public partial class App : MauiWinUIApplication /// public App() { + if (WinUIEx.WebAuthenticator.CheckOAuthRedirectionActivation()) + return; this.InitializeComponent(); } diff --git a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Android.jpg b/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Android.jpg deleted file mode 100644 index e4a14069c1..0000000000 Binary files a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Android.jpg and /dev/null differ diff --git a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_MacCatalyst.jpg b/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_MacCatalyst.jpg deleted file mode 100644 index c37ee2d85f..0000000000 Binary files a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_MacCatalyst.jpg and /dev/null differ diff --git a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Windows.jpg b/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Windows.jpg deleted file mode 100644 index c37ee2d85f..0000000000 Binary files a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_Windows.jpg and /dev/null differ diff --git a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_iOS.jpg b/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_iOS.jpg deleted file mode 100644 index 45d15c26f2..0000000000 Binary files a/src/MAUI/Maui.Samples/Resources/Thumbnails/Placeholder_iOS.jpg and /dev/null differ diff --git a/src/MAUI/Maui.Samples/Samples/Geometry/CreateAndEditGeometries/CreateAndEditGeometries.xaml b/src/MAUI/Maui.Samples/Samples/Geometry/CreateAndEditGeometries/CreateAndEditGeometries.xaml index 33986e68bf..d5c9b5339c 100644 --- a/src/MAUI/Maui.Samples/Samples/Geometry/CreateAndEditGeometries/CreateAndEditGeometries.xaml +++ b/src/MAUI/Maui.Samples/Samples/Geometry/CreateAndEditGeometries/CreateAndEditGeometries.xaml @@ -16,97 +16,120 @@ -