title: Jhipster registry "Status: (Unauthorized)" page after keycloak login
body: <p>Jhipster registry:v3.3.0 <br>
  Keycloak: 4.5.0.Final (https enabled)</p>
  
  <p>There is a jhipster registry setup using docker-compose as shown in picture. Registry talks to Keycloak for authentication.</p>
  
  <p><a href="https://i.stack.imgur.com/akgRS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/akgRS.png" alt="jhipster registry docker setup"></a></p>
  
  <p><a href="https://i.stack.imgur.com/SNguv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SNguv.jpg" alt="jhipster-registry.yml"></a>
  We have two keycloak instances.</p>
  
  <p>When configured with one keycloak instance it successfully logins and opens the registry page.</p>
  
  <p><a href="https://i.stack.imgur.com/Ow5qX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ow5qX.png" alt="successful login"></a></p>
  
  <p>When configured with other keycloak instance it show the following page:
  <a href="https://i.stack.imgur.com/YdLcQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YdLcQ.png" alt="login not successful"></a></p>
  
  <p>After entering keycloak credentials, the url in the browser is <a href="http://localhost:8761/login?state=Swy20H&amp;session_state=c6853b18-42f3-4ad9-9ad0-14615aa576bd&amp;code=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..xtptsARyYJPbqrhZD4ZF7A.yKur_w3c5H-ybHcpXeBSca1W7N3XxRzQXaUs383Kqh57wzaWt3FhBglGf-w154GRTM93F5oa2grE8HzVyrRpDadQs5FCjpNDZuD86KZy5JVI4RnlYOFvsTMcO-fFi_bWl2ByvNy7QARglrwGQOTeYndvrYluuC57OJGKm8819gIb9a5wvZ9oeiJLuDPwkcefs2J-xnUvEde3yAyVKGxe_oGdA8jJbbwRDQQvCI2e3FLyiKJ1F2P2iHFT5g_QaQxv.7k__JisYiWQrQpjgxJ8m5Q" rel="nofollow noreferrer">http://localhost:8761/login?state=Swy20H&amp;session_state=c6853b18-42f3-4ad9-9ad0-14615aa576bd&amp;code=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..xtptsARyYJPbqrhZD4ZF7A.yKur_w3c5H-ybHcpXeBSca1W7N3XxRzQXaUs383Kqh57wzaWt3FhBglGf-w154GRTM93F5oa2grE8HzVyrRpDadQs5FCjpNDZuD86KZy5JVI4RnlYOFvsTMcO-fFi_bWl2ByvNy7QARglrwGQOTeYndvrYluuC57OJGKm8819gIb9a5wvZ9oeiJLuDPwkcefs2J-xnUvEde3yAyVKGxe_oGdA8jJbbwRDQQvCI2e3FLyiKJ1F2P2iHFT5g_QaQxv.7k__JisYiWQrQpjgxJ8m5Q</a></p>
  
  <p>Same keycloak client was imported in Keycloak realm for instances. Any idea what could be the reason?</p>