Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR helps to share data between the nuxt app and keycloak. Such as the user selected locale or the if dark mode is enabled or not.
It allows only direction: from your nuxt app to keycloak
Example
Lets take the example you want to sync the `locale` and the `dark` mode for your applicationTo send the information to keycloak, just use
/auth/keycloak?dark=1&ui_locales=es
then you can handle those params from your keycloak themeEven better, Keycloak will automatically handle the
ui_locales
, you can then add the good class on yout html class for the dark modeNow, during a login process, a user may change the dark mode or the locale in Keycloak, when he returns to your app, you want him to arrive with the correct theme and locale. For this, you need to redirect the user to your app when he updates locale or darkmode, save the state in your nuxt app, redirect again to keycloak (keep the redirect uri as request params)
This way you can have your keycloak and your nuxt app fully sync