private static async Task Get2LeggedTokenAsync()

in packages/forge-viewmodels-netcore-aws/Controllers/OAuthController.cs [53:63]


        private static async Task<dynamic> Get2LeggedTokenAsync(Scope[] scopes)
        {
            TwoLeggedApi oauth = new TwoLeggedApi();
            string grantType = "client_credentials";
            dynamic bearer = await oauth.AuthenticateAsync(
                await GetAppSetting("FORGE_CLIENT_ID"),
                await GetAppSetting("FORGE_CLIENT_SECRET"),
                grantType,
                scopes);
            return bearer;
        }