Пример #1
0
        private async Task <string> GetTokenAsync(string authority, string resource, string scope)
        {
            JObject tokenResult = await AuthenticationUtilities.GetADAppTokenAsync(authority, resource, Config.ClientId, Config.ClientSecret);

            return(tokenResult["access_token"].ToString());
        }