# Spring Security: Multi Tenant support

**URL:** <https://forum.keycloak.org/t/spring-security-multi-tenant-support/8224>\
**Category:** Securing applications\
**Created:** [March 31, 2021, 5:16am UTC](https://forum.keycloak.org/t/spring-security-multi-tenant-support/8224 "2021-03-31T05:16:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OLibutzki](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/olibutzki/32/1460_2.png) [@OLibutzki](https://forum.keycloak.org/u/OLibutzki)\
**Post date:** [March 31, 2021, 5:16am UTC](https://forum.keycloak.org/t/spring-security-multi-tenant-support/8224/1 "2021-03-31T05:16:54Z")

</div>

Hello everyone,

I use the Spring Security adapter and and implemented a KeycloakConfigResolver like described in the documentation [2.1.18. Multi Tenancy](https://www.keycloak.org/docs/latest/securing_apps/index.html#_multi_tenancy). The deployment is resolved by the given path. Unfortunately `org.keycloak.adapters.springsecurity.filter.KeycloakAuthenticationProcessingFilter.attemptAuthentication(HttpServletRequest, HttpServletResponse)` tries to reolve the deployment by passing a request with the pass `/sso/login`. Therefore it’s not possible to distinguish based on the path.

Any ideas how to solve this?
