wolkenheim / keycloak-vue3

Building a Keycloak Client for Vue 3 to authenticate users
4 stars 3 forks source link

How to remove the state info from the address bar #1

Open cdecinkoKnight opened 3 weeks ago

cdecinkoKnight commented 3 weeks ago

So far this fairly simple example seems to work quite well. But, it leaves a really ugly looking query string in the address bar. Is there any way to get rid of that state information or is that necessary in case someone refreshes their browser?

wolkenheim commented 2 weeks ago

I assume you are referring to the problem with the session data from Keycloak, when redirecting to the Vue application after a successful login attempt. To my knowledge there are is no real solution here. There are workarounds mentioned here though: https://stackoverflow.com/questions/73903119/keycloak-js-appending-session-data-to-url-in-vue3