コード例 #1
0
        private AuthenticationResult GetToken()
        {
            var config                = _configData.GetConfig();
            var clientCredential      = _configBiz.GetClientCredential(config);
            var authenticationContext = _configBiz.GetAuthenticationContext(config);

            return(authenticationContext.AcquireTokenAsync(config.OnPremisesGatewayClientId, clientCredential).Result);
        }