[keycloak-user] Keycloak-js adapter ES6/Promise

Bruno Oliveira bruno at abstractj.org
Fri Nov 23 05:48:02 EST 2018


Hi Geoffrey, 

I believe this change has to wait until the next release to go live.

On 2018-11-23, Geoffrey Cleaves wrote:
> The JS adapters workings have changed in 4.6 and the docs have not been
> updated:
> https://github.com/keycloak/keycloak-documentation/pull/521#pullrequestreview-176267613
> 
> Regards,
> Geoffrey Cleaves
> 
> 
> 
> 
> 
> 
> 
> On Fri, 23 Nov 2018 at 09:43, Alexander Philippi <Alexander.Philippi at abas.de>
> wrote:
> 
> > Hi,
> > I start using the javascript adapter this week. The documentation
> > https://www.keycloak.org/docs/4.6/securing_apps/#_javascript_adapter
> > "says" that the init(...) function should returns a Promise.
> > After installing the official(?) javascript adapter with "npm install
> > keycloak-js" I only get the old "success" function as return value.
> >
> > I don't understand what I am doing wrong here. Shouldn't I get a
> > keycloak.js file with a Promise in it? Also I wonder if the keycloak-js
> > adapter should be on ES6 so I am able to do an "import Keycloak from
> > "keycloak-js"". I don't find any information about on
> > https://github.com/keycloak/keycloak-js-bower. Since 4.0.0-beta nothing
> > changed here.
> >
> > Best Regards
> > Alex
> > _______________________________________________
> > 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

-- 

abstractj


More information about the keycloak-user mailing list