[keycloak-user] Cannot pass idpHint option to Keycloak

Marek Posolda mposolda at redhat.com
Wed Oct 11 08:45:03 EDT 2017


We have the example in the workspace, which is using. It's not part of 
the official examples distribution and maybe doesn't work, but hopefully 
might still give you some more hints about how to use and init this 
stuff. Also see the docs for our javascript adapter in the official 
docs. Example is here: 
https://github.com/keycloak/keycloak/tree/master/examples/broker/twitter-authentication

Marek

On 10/10/17 16:34, Sumit Das wrote:
> Hi
>
> ​​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 (
> http://www.keycloak.org/docs/latest/server_admin/topics/identity-broker/suggested.html#_client_suggested_idp),
> *we can simply provide idpHint* for this. Though that doesn't work.
>
> Following is the piece of code:-
> *var keycloakAuth = new Keycloak('keycloak.json');*
> *keycloakAuth.createLoginUrl({idpHint: 'ad-oidc'});*
>
> It failed with:-
> *Unable to get property 'redirectUri' of undefined or null reference*
>
> As far as I understand that's because* adapter is not created yet*. So
> probably we need to pass this option sometimes later. But I am not sure
> where exactly am I supposed to do that.
>
> Your help and earliest response is awaited.
>
> *​Regards​*
>
> *Sumit Das*
> *Mobile No.- +91-9986872466 *
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list