Skip to content

Instantly share code, notes, and snippets.

@MoimHossain

MoimHossain/TokenHelper Secret

Created Jul 15, 2018
Embed
What would you like to do?
TokenHelper.cs
internal class TokenHelper
{
internal async Task<string> GetManagementApiAccessTokenAsync()
{
var astp = new AzureServiceTokenProvider();
var accessToken = await astp
.GetAccessTokenAsync(Constants.AzureManagementAPI);
return accessToken;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.