# Multiple authentications

**URL:** <https://forum.keycloak.org/t/multiple-authentications/8024>\
**Category:** Securing applications\
**Created:** [March 18, 2021, 7:58pm UTC](https://forum.keycloak.org/t/multiple-authentications/8024 "2021-03-18T19:58:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adokarasev](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/adokarasev/32/2672_2.png) [@adokarasev](https://forum.keycloak.org/u/adokarasev)\
**Post date:** [March 18, 2021, 7:58pm UTC](https://forum.keycloak.org/t/multiple-authentications/8024/1 "2021-03-18T19:58:14Z")

</div>

We have a multi tenant application where every tenant has own subdomain and shared keycloak instance which is hosted on separate subdomain. Keycloak use Google as Default IDP.

The problem we have is when user tries to login to two different tenants accounts. When user logins to second tenant Keycloak returns an error that another user is found.

```
type=REGISTER_ERROR, realmId= ************, clientId=************ , 
userId=c02226d3-a98d-446b-8fc7-065b371475f9, ipAddress= *************** ,
error=different_user_authenticated, identity_provider=google, register_method=broker, 
consent=no_consent_required, previous_user=1e48a773-0e52-43db-a545-adf43cd54916, 
identity_provider_identity= ********************** , code_id=8f35c039-f792-4fca-9ee7-cfd8d47d9b16, 
email= **********************, username=********************** , 
authSessionParentId=8f35c039-f792-4fca-9ee7-cfd8d47d9b16, authSessionTabId=AM_CXVAFF44

```

Any idea how we can fix it?
