Share via


IAuthenticationFactory.GetServiceClientCredentials Method

Definition

Overloads

GetServiceClientCredentials(IAzureContext)
GetServiceClientCredentials(IAzureContext, String)
GetServiceClientCredentials(String, Func<String>)

GetServiceClientCredentials(IAzureContext)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext) As ServiceClientCredentials

Parameters

context
IAzureContext

Returns

Applies to

GetServiceClientCredentials(IAzureContext, String)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string targetEndpoint);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext, targetEndpoint As String) As ServiceClientCredentials

Parameters

context
IAzureContext
targetEndpoint
String

Returns

Applies to

GetServiceClientCredentials(String, Func<String>)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (string accessToken, Func<string> renew = default);
abstract member GetServiceClientCredentials : string * Func<string> -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (accessToken As String, Optional renew As Func(Of String) = Nothing) As ServiceClientCredentials

Parameters

accessToken
String
renew
Func<String>

Returns

Applies to