public async Task <string> GetTokenAsync(Uri uri, CancellationToken cancellationToken) { return((await adalTokenProvider.AcquireTokenWithUI(cancellationToken))?.AccessToken); }
public async Task <string> GetTokenAsync(Uri uri, CancellationToken cancellationToken) { logger.Minimal(string.Format(Resources.UIFlowStarted, this.Name, uri.AbsoluteUri)); return((await adalTokenProvider.AcquireTokenWithUI(cancellationToken))?.AccessToken); }