[keycloak-dev] keycloak-js in a microfrontend architecture

Tomasz Prętki tomasz.pretki at dgt.eu
Tue Oct 15 06:29:05 EDT 2019


Hi Jon,

I’m using NPM and I’ll wait. Thanks for notice.

Regards
Tomasz

From: Jon Koops <jonkoops at gmail.com>
Sent: Tuesday, October 15, 2019 11:36 AM
To: Tomasz Prętki <tomasz.pretki at dgt.eu>
Cc: stian at redhat.com; keycloak-dev at lists.jboss.org
Subject: Re: [keycloak-dev] keycloak-js in a microfrontend architecture

Hi Tomasz,
Just FYI. Be aware that the silent SSO check is part of Keycloak 7, if you are using NPM to manage your dependencies you will not be able to install this version due to a bug. If you want to make use of this functionality in combination with NPM please wait until version 8 has been released which should be coming soon.

Regards,
Jon

On Tue, Oct 15, 2019 at 11:30 AM Tomasz Prętki <tomasz.pretki at dgt.eu<mailto:tomasz.pretki at dgt.eu>> wrote:
Hi Stian,

Yes I know but I thought it’s a matter of code-level discussion as I hadn’t found any configuration solution.
I’ve just found https://issues.jboss.org/browse/KEYCLOAK-10734 and will check it.

Regards
Tomasz

From: Stian Thorgersen <sthorger at redhat.com<mailto:sthorger at redhat.com>>
Sent: Monday, October 14, 2019 1:39 PM
To: Tomasz Prętki <tomasz.pretki at dgt.eu<mailto:tomasz.pretki at dgt.eu>>
Cc: keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org>
Subject: Re: [keycloak-dev] keycloak-js in a microfrontend architecture

Hi,

This list is purely for core developers and contributors. For help please use the user mailing list or forum.

On Mon, 14 Oct 2019 at 13:15, Tomasz Prętki <tomasz.pretki at dgt.eu<mailto:tomasz.pretki at dgt.eu><mailto:tomasz.pretki at dgt.eu<mailto:tomasz.pretki at dgt.eu>>> wrote:
Hi there!



I'm trying to investigate using keycloak-js adapter in a microfrontend architecture. More specifically the single-spa ( https://single-spa.js.org/ ) solution. I would like to secure each microfrontend with it's own Keycloak client, because I want to deploy microfrontends separately too and have access to the Keycloak's context from each microfronted as well.

In the single-spa environment I am facing a redirect loop, because keycloak-js doesn't like more than one instance. I'm trying to init one instance, get redirected to Keycloak's login page and after successful login, trying to init another instance. Now the redirect loop occurs.



What is your opinion about this? How to achive this without compromising security? Any suggestions?

Tomasz Prętki

_______________________________________________
keycloak-dev mailing list
keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org><mailto:keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org>>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
_______________________________________________
keycloak-dev mailing list
keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-dev


More information about the keycloak-dev mailing list