Closed zenit70 closed 1 year ago
@zenit70 Thanks for the thorough explanation. In order to see what is happening, I'd need to see the full trace of the network calls. Is it possible to export a HAR?
@xgp Thank you for your response and interest, I attach the HAR file
I'm unable to repro. I used the vue app in the Keycloak examples, and the magic link login worked fine. https://www.keycloak.org/securing-apps/vue
Thanks
I followed the guide, installed the extension on Ketcloak v18 Quarkus and then, using Curl, requested the generation of a magic link that has allowed me to access the
account-console
client with the new user.Now I'm trying to use a magic link to access a Vuejs application, but I'm not able to authenticate a new user.
In Keycloak I created and configured a new client for the Vue application and requested a magik link with parameters like these:
The response contains a magic link like this:
In the Vue application I use the Javascript adapter to authenticate the user, first I create a new Keycloak instance and then call the
init
method. After clicking the magic link and being redirected to the correct page, the Javascript adapter fails to authenticate and does not contain the token.The
to
parameter of the route contains these values:Could you help me understand how to use magic link with Vue application?
Does the Keycloak client or javascript library need any special configuration?
Thanks