[keycloak-user] Cannot pass idpHint option to Keycloak

Peter K. Boucher pkboucher801 at gmail.com
Wed Oct 11 15:00:57 EDT 2017


We made it work with some tweaks to keycloak.js (lines 117-122 and 147-148 in the attached).

-----Original Message-----
From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces at lists.jboss.org] On Behalf Of Marek Posolda
Sent: Wednesday, October 11, 2017 8:45 AM
To: Sumit Das <sumitdas66 at gmail.com>; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] Cannot pass idpHint option to Keycloak

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


_______________________________________________
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