TokenProvider.CreateManagedIdentityTokenProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateManagedIdentityTokenProvider(Uri) |
Creates a TokenProvider using a default AzureServiceTokenProvider instance. This overload will authenticate with managed identities for Azure resources. For more details on AzureServiceTokenProvider, please see http://docs.microsoft.com/en-us/dotnet/api/overview/azure/service-to-service-authentication#connection-string-support. |
CreateManagedIdentityTokenProvider(AzureServiceTokenProvider, Uri) |
Creates a TokenProvider using a default AzureServiceTokenProvider instance. This overload will allow authentication with both managed and user-assigned identities for Azure resources. For more details on AzureServiceTokenProvider, please see http://docs.microsoft.com/en-us/dotnet/api/overview/azure/service-to-service-authentication#connection-string-support. |
CreateManagedIdentityTokenProvider(Uri)
Creates a TokenProvider using a default AzureServiceTokenProvider instance. This overload will authenticate with managed identities for Azure resources. For more details on AzureServiceTokenProvider, please see http://docs.microsoft.com/en-us/dotnet/api/overview/azure/service-to-service-authentication#connection-string-support.
public static Microsoft.ServiceBus.TokenProvider CreateManagedIdentityTokenProvider (Uri audience);
static member CreateManagedIdentityTokenProvider : Uri -> Microsoft.ServiceBus.TokenProvider
Public Shared Function CreateManagedIdentityTokenProvider (audience As Uri) As TokenProvider
Parameters
- audience
- Uri
The service resource URI for token acquisition.
Returns
The TokenProvider for returning Json web token.
Applies to
CreateManagedIdentityTokenProvider(AzureServiceTokenProvider, Uri)
Creates a TokenProvider using a default AzureServiceTokenProvider instance. This overload will allow authentication with both managed and user-assigned identities for Azure resources. For more details on AzureServiceTokenProvider, please see http://docs.microsoft.com/en-us/dotnet/api/overview/azure/service-to-service-authentication#connection-string-support.
public static Microsoft.ServiceBus.TokenProvider CreateManagedIdentityTokenProvider (Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider azureServiceTokenProvider, Uri audience);
static member CreateManagedIdentityTokenProvider : Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider * Uri -> Microsoft.ServiceBus.TokenProvider
Public Shared Function CreateManagedIdentityTokenProvider (azureServiceTokenProvider As AzureServiceTokenProvider, audience As Uri) As TokenProvider
Parameters
- azureServiceTokenProvider
- AzureServiceTokenProvider
The AzureServiceTokenProvider instance used to obtain the security token.
- audience
- Uri
The service resource URI for token acquisition.
Returns
The TokenProvider for returning Json web token.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기