Issue with automatic login


I have one keycloak server that communicate with 4 different clients (different subdomains under the same domain [,] and different databases). Each client had been made with django. I have the following problem:

When i login in the client A and then go to the client B, in the client B i am not logged in yet, but if i click on “Login” button, redirects to keycloak and instantly go to the first page but now im authenticated.

I dont know how to make that the client verifies first with keycloak if the user is authenticated before loads the page, because in the client B i have no user, no password and no tokens, but when i click on login button it makes the auth process automatically.

I use mozilla django oidc package, thanks