From 0df37f7ab6642248cdb433f215fed9a3d6b01603 Mon Sep 17 00:00:00 2001 From: jtschuster Date: Fri, 1 Sep 2023 02:13:08 +0000 Subject: [PATCH] =?UTF-8?q?Bot=20=F0=9F=A4=96=20generated=20CleanRepo=20to?= =?UTF-8?q?ol=20run?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .openpublishing.redirection.azure.json | 2 +- .openpublishing.redirection.framework.json | 22 ++--- docs/azure/TOC.yml | 12 +-- .../sdk/authentication/additional-methods.md | 77 ------------------ .../8.0/directoryservices-package.md | 45 ---------- .../visual-studio-project-toolbar.png | Bin 6188 -> 0 bytes 6 files changed, 18 insertions(+), 140 deletions(-) delete mode 100644 docs/azure/sdk/authentication/additional-methods.md delete mode 100644 docs/core/compatibility/extensions/8.0/directoryservices-package.md delete mode 100644 docs/core/tutorials/media/library-with-visual-studio/visual-studio-project-toolbar.png diff --git a/.openpublishing.redirection.azure.json b/.openpublishing.redirection.azure.json index 704cb9f69b93a..598285c7dc698 100644 --- a/.openpublishing.redirection.azure.json +++ b/.openpublishing.redirection.azure.json @@ -30,7 +30,7 @@ }, { "source_path_from_root": "/docs/azure/dotnet-sdk-azure-authenticate.md", - "redirect_url": "/dotnet/azure/sdk/authentication" + "redirect_url": "/dotnet/azure/sdk/authentication/index" }, { "source_path_from_root": "/docs/azure/dotnet-sdk-azure-concepts.md", diff --git a/.openpublishing.redirection.framework.json b/.openpublishing.redirection.framework.json index 7b1aff6abab69..ab761d8f3e660 100644 --- a/.openpublishing.redirection.framework.json +++ b/.openpublishing.redirection.framework.json @@ -1095,39 +1095,39 @@ }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-culture-and-asynchronous-operations.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.5.2-4.6" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-culture-and-dispatcher-operations-in-wpf-apps.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.5.2-4.6" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-default-authorizationcontext.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.5.2-4.6" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-eventsource-writeevent-method-calls.md", - "redirect_url": "/dotnet/framework/migration-guide/runtime/4.5-4.5.1" + "redirect_url": "/dotnet/framework/migration-guide/runtime/4.5.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-grid-control.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.2-4.7" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.7.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-horizontal-scrolling-and-virtualization.md", - "redirect_url": "/dotnet/framework/migration-guide/runtime/4.6.1-4.6.2" + "redirect_url": "/dotnet/framework/migration-guide/runtime/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-long-path-support.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.1-4.6.2" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-memberdescriptor-equals.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.1-4.6.2" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/migration-guide/mitigation-minfreememorypercentagetoactiveservice-configuration-setting.md", - "redirect_url": "/dotnet/framework/migration-guide/runtime/4.5-4.5.1" + "redirect_url": "/dotnet/framework/migration-guide/runtime/4.5.x" }, { "source_path_from_root": "/docs/framework/migration-guide/minimum-release-dword.md", @@ -1135,11 +1135,11 @@ }, { "source_path_from_root": "/docs/framework/migration-guide/mitigation-claimsidentity-constructor.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.1-4.6.2" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.x" }, { "source_path_from_root": "/docs/framework/migration-guide/mitigation-cspparameters-parentwindowhandle-expects-an-hwnd.md", - "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.6.2-4.7" + "redirect_url": "/dotnet/framework/migration-guide/retargeting/4.7.x" }, { "source_path_from_root": "/docs/framework/migration-guide/net-compatibility-diagnostics.md", diff --git a/docs/azure/TOC.yml b/docs/azure/TOC.yml index c32d50341c3eb..3ae47e8723486 100644 --- a/docs/azure/TOC.yml +++ b/docs/azure/TOC.yml @@ -38,19 +38,19 @@ - name: Authentication items: - name: Overview - href: sdk/authentication.md + href: /dotnet/azure/sdk/authentication/index - name: Auth during local development items: - name: Auth using developer service principals - href: sdk/authentication-local-development-service-principal.md + href: /dotnet/azure/sdk/authentication/local-development-service-principal - name: Auth using developer accounts - href: sdk/authentication-local-development-dev-accounts.md + href: /dotnet/azure/sdk/authentication/local-development-dev-accounts - name: Auth from Azure-hosted apps - href: sdk/authentication-azure-hosted-apps.md + href: /dotnet/azure/sdk/authentication/azure-hosted-apps - name: Auth from on-premises apps - href: sdk/authentication-on-premises-apps.md + href: /dotnet/azure/sdk/authentication/on-premises-apps - name: Additional auth methods - href: sdk/authentication-additional-methods.md + href: /dotnet/azure/sdk/authentication/additional-methods - name: Resource management href: ./sdk/resource-management.md - name: Dependency injection diff --git a/docs/azure/sdk/authentication/additional-methods.md b/docs/azure/sdk/authentication/additional-methods.md deleted file mode 100644 index bc9ba80a126e3..0000000000000 --- a/docs/azure/sdk/authentication/additional-methods.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: Additional methods to authenticate to Azure resources from .NET apps -description: This article describes additional, less common methods you can use to authenticate your .NET app to Azure resources. -ms.topic: how-to -ms.custom: devx-track-dotnet, engagement-fy23 -ms.date: 2/28/2023 ---- - -# Additional methods to authenticate to Azure resources from .NET apps - -This article lists additional methods apps may use to authenticate to Azure resources. The methods on this page are less commonly used and when possible, it is encouraged to use one of the methods outlined in the [authenticating .NET apps to Azure using the Azure SDK overview](./index.md) article. - -## Interactive browser authentication - -This method interactively authenticates an application through [`InteractiveBrowserCredential`](/dotnet/api/azure.identity.interactivebrowsercredential) by collecting user credentials in the default system. - -Interactive browser authentication enables the application for all operations allowed by the interactive login credentials. As a result, if you are the owner or administrator of your subscription, your code has inherent access to most resources in that subscription without having to assign any specific permissions. For this reason, the use of interactive browser authentication is discouraged for anything but experimentation. - -### Example using InteractiveBrowserCredential - -The following example demonstrates using an [`InteractiveBrowserCredential`](/dotnet/api/azure.identity.interactivebrowsercredential) to authenticate with the [`BlobServiceClient`](/dotnet/api/azure.storage.blobs.blobserviceclient): - -```csharp -using Azure.Identity; -using Azure.Storage.Blobs; - -var client = new BlobServiceClient( - new Uri("https://.blob.core.windows.net"), - new InteractiveBrowserCredential()); - -foreach (var blobItem in client.GetBlobContainers()) -{ - Console.WriteLine(blobItem.Name); -} -``` - -For more exact control, such as setting redirect URIs, you can supply specific arguments to `InteractiveBrowserCredential` such as `redirect_uri`. - -## Device code authentication - -This method interactively authenticates a user on devices with limited UI (typically devices without a keyboard): - -1. When the application attempts to authenticate, the credential prompts the user with a URL and an authentication code. -1. The user visits the URL on a separate browser-enabled device (a computer, smartphone, etc.) and enters the code. -1. The user follows a normal authentication process in the browser. -1. Upon successful authentication, the application is authenticated on the device. - -For more information, see [Microsoft identity platform and the OAuth 2.0 device authorization grant flow](/azure/active-directory/develop/v2-oauth2-device-code). - -Device code authentication in a development environment enables the application for all operations allowed by the interactive login credentials. As a result, if you are the owner or administrator of your subscription, your code has inherent access to most resources in that subscription without having to assign any specific permissions. However, you can use this method with a specific client ID, rather than the default, for which you can assign specific permissions. - -## Authentication with a username and password - -This method authenticates an application using previous-collected credentials and the [`UsernamePasswordCredential`](/dotnet/api/azure.identity.usernamepasswordcredential) object. - -This method of authentication is discouraged because it's less secure than other flows. Also, this method is not interactive and is therefore **not compatible with any form of multi-factor authentication or consent prompting.** The application must already have consent from the user or a directory administrator. - -Furthermore, this method authenticates only work and school accounts; Microsoft accounts are not supported. For more information, see [Sign up your organization to use Azure Active Directory](/azure/active-directory/fundamentals/sign-up-organization). - -```csharp -using Azure.Identity; -using Azure.Storage.Blobs; - -var clientId = Environment.GetEnvironmentVariable("AZURE_CLIENT_ID"); -var tenantId = Environment.GetEnvironmentVariable("AZURE_TENANT_ID"); -var username = Environment.GetEnvironmentVariable("AZURE_USERNAME"); -var password = Environment.GetEnvironmentVariable("AZURE_PASSWORD"); - -var client = new BlobServiceClient( - new Uri("https://.blob.core.windows.net"), - new UsernamePasswordCredential(username, password, tenantId, clientId)); - -foreach (var blobItem in client.GetBlobContainers()) -{ - Console.WriteLine(blobItem.Name); -} -``` diff --git a/docs/core/compatibility/extensions/8.0/directoryservices-package.md b/docs/core/compatibility/extensions/8.0/directoryservices-package.md deleted file mode 100644 index 788f91b0466d0..0000000000000 --- a/docs/core/compatibility/extensions/8.0/directoryservices-package.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: "Breaking change: DirectoryServices package no longer references System.Security.Permissions" -description: Learn about the .NET 8 breaking change in .NET extensions where the System.DirectoryServices package no longer references the System.Security.Permissions package. -ms.date: 08/22/2023 ---- -# DirectoryServices package no longer references System.Security.Permissions - -The `System.DirectoryServices` package no longer references the `System.Security.Permissions` package. - -## Version introduced - -.NET 8 Preview 3 - -## Previous behavior - -The `System.DirectoryServices` package referenced the `System.Security.Permissions` package. - -## New behavior - -Starting in .NET 8, the `System.DirectoryServices` package *does not* reference the `System.Security.Permissions` package. - -## Type of breaking change - -This change can affect [source compatibility](../../categories.md#source-compatibility). - -## Reason for change - -This change avoids a dependency on `System.Drawing.Common` when `System.DirectoryServices` is referenced, which is primarily an issue for non-Windows operating systems. - -The dependency on `System.Drawing.Common` was caused by the following package dependencies: - -```txt -System.DirectoryServices - └──System.Security.Permissions - └──System.Windows.Extensions - └──System.Drawing.Common -``` - -## Recommended action - -If your app references the `System.DirectoryServices` package and you also have a dependency on `System.Security.Permissions` or any of its dependencies, which might include `System.Windows.Extensions` or `System.Drawing.Common`, you'll need to reference those packages either directly or indirectly. - -## Affected APIs - -N/A diff --git a/docs/core/tutorials/media/library-with-visual-studio/visual-studio-project-toolbar.png b/docs/core/tutorials/media/library-with-visual-studio/visual-studio-project-toolbar.png deleted file mode 100644 index f124b4f9188ba30b024d3cc6697b1b881d17281c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6188 zcmYkA1yCG3(}3|paX7TauF%8XrP$$Cv>Z~3TXCmI3lt6xr??d@Uf^&jQrz7+DDLk5 z)A#+p`M;SYyPL^oHKgsUJA)<8l+m3h+XF)^N6+3uL>CxPsu zAt!}YHuQ4)$w0G|RFOnNs))kAGe&>1u^ipk+})`xa!FK&Ig`Tv~LwBes~LWiHlo*l2|KWZQVC^UM44 zaY(54BSgp&z=_lTZ{d9_RmJchol`k5NQUsg1}>$0rYU(Bi#q<3q(b*+W||E`_0I$44*;+^_g7xy&PLVvgepflM9bt1gM zf{6Db>xUV2*cH$~66%c3A5+WZE(duX^Fvtg9UBzivYpRqv3RA)yAk|;qPM1x-!R_m z?|u{xCf$A-Op0(aSZAAbLz(3D1L+l%eC@F~U8wkGW$0!MAN^drAk;b;SCHdok>fAB zGV|=$`qC$osd5MOk#=${0iP+1=i7vu2c$xjdR- zTTHv0S!hT1cBLj`4@Ya3bck8D=;UYvvp=mr6raQdzPfVFBj~+`d2)IZ4I1NmN;*}_ z4oOiho#?VW-96g;pG-?f4&CJC`S2c+S_!7}5I>XaoDQ{q7BX*{w)MS+AOEmsg)uSz za(%AEPt)Nsi!SJ|K-E)i<&BE*`mFUV>lfi7y%dzlwuP3T&WE}0=gK#7iT8Dm$kSzo z%@0{wSyqcpLUT2Cu;>v^#u`q@Axz@_^)@h;eCKYWZ8u?DBg9(2aKUZb(DUjN&P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