Wednesday, 2 June 2021

token using azure credential method

 generate token using default azure credentials method.


var credential = new DefaultAzureCredential();

var token = credential.GetToken(

new Azure.Core.TokenRequestContext(

new[] { "https://vault.azure.net/.default" }));


var accessToken = token.Token;


No comments:

Post a Comment

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...