# Spring Boot + Spring Security + Basic Authentication

**URL:** <https://forum.keycloak.org/t/spring-boot-spring-security-basic-authentication/1948>\
**Category:** Miscellanaeous\
**Created:** [April 3, 2020, 12:09am UTC](https://forum.keycloak.org/t/spring-boot-spring-security-basic-authentication/1948 "2020-04-03T00:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliasbalasis](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/eliasbalasis/32/588_2.png) [@eliasbalasis](https://forum.keycloak.org/u/eliasbalasis)\
**Post date:** [April 3, 2020, 12:09am UTC](https://forum.keycloak.org/t/spring-boot-spring-security-basic-authentication/1948/1 "2020-04-03T00:09:19Z")

</div>

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

> <https://stackoverflow.com/questions/37942669/spring-boot-keycloak-and-basic-authentication-together-in-the-same-project>

---

<div class="post-metadata">

**Author:** ![eliasbalasis](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/eliasbalasis/32/588_2.png) [@eliasbalasis](https://forum.keycloak.org/u/eliasbalasis)\
**Post date:** [April 3, 2020, 11:19pm UTC](https://forum.keycloak.org/t/spring-boot-spring-security-basic-authentication/1948/2 "2020-04-03T23:19:19Z")

</div>

Cancel this post.

I have been driving down the wrong direction.

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