diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 388bae509b..cd9fa42619 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -1,7 +1,7 @@ true - 200.5.0 + 200.6.0 @@ -26,7 +26,7 @@ - + diff --git a/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs b/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs index 068fd9ece3..8d000c8dd7 100644 --- a/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs +++ b/src/MAUI/Maui.Samples/Helpers/ArcGISLoginPrompt.cs @@ -74,23 +74,6 @@ public static void SetChallengeHandler() AuthenticationManager.Current.OAuthUserConfigurations.Add(userConfig); AuthenticationManager.Current.OAuthAuthorizeHandler = new OAuthAuthorize(); } - - // ChallengeHandler function that will be called whenever access to a secured resource is attempted. - public static async Task PromptCredentialAsync(CredentialRequestInfo info) - { - Credential credential = null; - - try - { - // IOAuthAuthorizeHandler will challenge the user for OAuth credentials. - credential = await AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri); - } - // OAuth login was canceled, no need to display error to user. - catch (TaskCanceledException) { } - catch (OperationCanceledException) { } - - return credential; - } } #region IOAuthAuthorizationHandler implementation diff --git a/src/MAUI/Maui.Samples/Platforms/Android/AndroidManifest.xml b/src/MAUI/Maui.Samples/Platforms/Android/AndroidManifest.xml index fdf5bc81c8..0f94b1a9ac 100644 --- a/src/MAUI/Maui.Samples/Platforms/Android/AndroidManifest.xml +++ b/src/MAUI/Maui.Samples/Platforms/Android/AndroidManifest.xml @@ -1,5 +1,5 @@ - - + + diff --git a/src/MAUI/Maui.Samples/Samples/Data/EditBranchVersioning/EditBranchVersioning.xaml.cs b/src/MAUI/Maui.Samples/Samples/Data/EditBranchVersioning/EditBranchVersioning.xaml.cs index 3eda36e298..66d27c28fb 100644 --- a/src/MAUI/Maui.Samples/Samples/Data/EditBranchVersioning/EditBranchVersioning.xaml.cs +++ b/src/MAUI/Maui.Samples/Samples/Data/EditBranchVersioning/EditBranchVersioning.xaml.cs @@ -50,7 +50,7 @@ private async Task Initialize() // WARNING: Never hardcode login information in a production application. This is done solely for the sake of the sample. string sampleServer7User = "editor01"; string sampleServer7Pass = "S7#i2LWmYH75"; - return await AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri, sampleServer7User, sampleServer7Pass); + return await AccessTokenCredential.CreateAsync(info.ServiceUri, sampleServer7User, sampleServer7Pass); } catch (Exception ex) { diff --git a/src/MAUI/Maui.Samples/Samples/Geometry/SnapGeometryEdits/SnapGeometryEdits.xaml b/src/MAUI/Maui.Samples/Samples/Geometry/SnapGeometryEdits/SnapGeometryEdits.xaml index 395fe14426..fb0efacb7a 100644 --- a/src/MAUI/Maui.Samples/Samples/Geometry/SnapGeometryEdits/SnapGeometryEdits.xaml +++ b/src/MAUI/Maui.Samples/Samples/Geometry/SnapGeometryEdits/SnapGeometryEdits.xaml @@ -142,10 +142,71 @@ VerticalOptions="Center"> + +