Spring Boot + Spring Security + Basic Authentication

Great tool.

I have managed to integrate my Spring Boot application quite easily with Keycloak using form authentication.

However, I am struggling with Basic Authentication, the Keycloak filters and the Spring Boot Basic Authentication filter seem to interfere very badly in this combination.

Unfortunately, I couldn’t find any direction in the documentation.

Is this supported?
If yes, how? what am I missing?

the following didn’t help much either, although it seems to be pointing to the correct direction

Cancel this post.

I have been driving down the wrong direction.

Direct Access Grants with access token is required for REST clients.