title: Cannot pass idpHint option to Keycloak
body: <p>I am using IDP provider for authentication and trying to bypass the standard keycloak login screen (so I need to go immediately to the IDP specific authorization screen). According to this documentation <a href="https://keycloak.gitbooks.io/server-adminstration-guide/content/topics/identity-broker/suggested.html" rel="nofollow noreferrer">https://keycloak.gitbooks.io/server-adminstration-guide/content/topics/identity-broker/suggested.html</a> we can simply provide idpHint for this. Though that doesn't work.</p>
  
  <p><code>
  let keycloakAuth : any = new Keycloak('keycloak.json');
  keycloakAuth.createLoginUrl({idpHint: 'ad-oidc'});
  </code></p>
  
  <p>It failed with </p>
  
  <p><code>Uncaught TypeError: Cannot read property 'redirectUri' of undefined
      at Keycloak.kc.createLoginUrl (keycloak-core.js:212)
  </code></p>
  
  <p>As far as I understand that's because adapter is not created yet. So probably we need to pass this option sometimes later (but not sure at which phase).</p>
  
  <p>I was able to do this only by hardcoding the idpHint inside of the keycloak-core.js itself temporarily. Looking forward to avoid this.</p>
  
  <p>Thanks in advance.</p>