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

Stian Thorgersen sthorger at redhat.com
Mon Oct 14 07:39:22 EDT 2019


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> 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
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>


More information about the keycloak-dev mailing list