BISharp.PowerBiAuthentication.getAccessToken C# (CSharp) Method

getAccessToken() private method

private getAccessToken ( ) : void
return void
        private void getAccessToken()
        {
            string resourceUri = "https://analysis.windows.net/powerbi/api";
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);

            _token = authContext.AcquireToken(resourceUri, this._clientId,
                new Uri(redirectUri), PromptBehavior.Always);
        }