Can we public AzureKeyCredentialPolicy
and move it to Azure.Core?
#39490
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
System.ClientModel
Base Core library
Milestone
There are many services which use Azure-Key for authentication. see following
In the generated SDKs, we will create
AzureKeyCredentialPolicy
for this authentication and add it to the Azure Core Pipeline.It will fail to build the SDK because

AzureKeyCredentialPolicy
is internal.Workaround:
service team need manually add
<Compile Include="$(AzureCoreSharedSources)AzureKeyCredentialPolicy.cs" LinkBase="Shared/Core" />
in project file(.csproj).Affect:
It breaks sdk automation and need extra manual work for service team after he generate the SDK.
Solution:
If
AzureKeyCredentialPolicy
is public class and included in Azure.Core library asBearerTokenAuthenticationPolicy
, the class will be automatically loaded and do not need to manually update the project file.Can we make
AzureKeyCredentialPolicy
public class and include in Azure.Core asBearerTokenAuthenticationPolicy
?The text was updated successfully, but these errors were encountered: