I didn’t have the time to dive really into it, but what I observed so long:
- keycloak-js with React.js and plain JavaScript, bundled with Webpack 1 works like a
charm.
- keycloak-js with Angular 2 and TypeScript, bundled with Webpack 2 results in errors.
So, the cause might be Webpack 2 or TypeScript….
(I think it’s Typescript)
My quick solution was to add keycloak-js with standard <script> tag in index.html.
Other integration was to follow the example
Am 30.01.2017 um 21:53 schrieb Brian Schofield
<scope022(a)gmail.com>:
We figured out the issue. Yes, the keycloak.json file was not in the
appropriate directory.
Webpack was not moving my static files into my distribution directory.
We are currently getting prompt to login. I've got a few more use cases I
need to develop using keycloak, I will let you know if anything else pops
up.
-Brian
On Mon, Jan 30, 2017 at 2:30 PM, ebondu <dev.ebondu(a)gmail.com> wrote:
> The keycloak.json looks to no be accessible from your browser, place it
> correctly in your project to make it accessible (my-app/src/public/ in my
> example)
>
>
> Brian Schofield wrote
>> Do note that I am getting console out that says 'initializing Keycloak
>> method' however it's seems that the request for the keycloak.json is
>> returning html.
>
> Can you share the html result for the request to keycloak.json to confirm
> it
> is a 404 error page?
>
>
>
>
> --
> View this message in context:
http://keycloak-user.88327.x6.
>
nabble.com/keycloak-user-Angular-2-with-Webpack-tp2493p2530.html
> Sent from the keycloak-user mailing list archive at
Nabble.com.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
Brian §chofield
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user