Skip to content

Commit

Permalink
Changed because identity isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandev committed Sep 17, 2024
1 parent 30c4ce1 commit 13b2a6a
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,8 @@ private async Task<string> GenerateAccessToken(string requestedScope)
else
{
_logger.LogInformation("Running in Azure. Using DefaultAzureCredential with Managed Identity `{ManagedIdentityClientId}` to get access token.", userAssignedClientId);
var tokenCredential = new DefaultAzureCredential(
new DefaultAzureCredentialOptions
{
ManagedIdentityClientId = userAssignedClientId
}
);

var tokenCredential = new ManagedIdentityCredential(userAssignedClientId);

AccessToken accessToken;
if(string.IsNullOrEmpty(requestedScope))
Expand Down

0 comments on commit 13b2a6a

Please sign in to comment.