Authorization one clients two realms

I have a small headache. I have several realms and wants to connect users with two realms to give access to one (clients) application.
Do you know how to configure the keyclock to work?