[keycloak-user] Keycloak-js adapter ES6/Promise
Geoffrey Cleaves
geoff at opticks.io
Fri Nov 23 06:55:12 EST 2018
Hi Bruno, are you referring to the changes I made to the documentation
reflecting the new way that the JS adaptor works? Hopefully the
documentation releases move at a faster pace than Keycloak releases,
otherwise the public facing documentation could be wrong for weeks even
though it has been corrected in the master branch.
On Fri, 23 Nov 2018 at 11:48, Bruno Oliveira <bruno at abstractj.org> wrote:
> 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