using Microsoft.AspNetCore.Mvc; namespace DD.Keycloak.Client.Web.Controllers; [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; private readonly ILogger _logger; private readonly IKeycloakClient _test; public WeatherForecastController(ILogger logger, IKeycloakClient test) { _logger = logger; _test = test; } [HttpGet] public async Task Get() { var token = await _test.GetToken(); return token; } }