I have an Spring Boot 3 app. I use Keycloak and Open Api 3. Open Api (swagger) works fine for get methods, but not for post. For POST methods I get a 403. I see that I can configure OpenApi so that I can send manually an access token, but I find it very ugly.
Is there really no way to make open api send a request with the credentials towards Keycloak, get the token from response and add it in the header when a request to an endpoint is made?