Keycloakify
GitHubStorybookStarter projectKeycloak as a service
v8
  • Documentation
  • Release Notes & Upgrade Instructions
  • FAQ
v8
  • 👨‍💻Quick start
  • 🔩Keycloakify in my App
  • 📧Email customization
  • ✒️Terms and conditions
  • ✅Realtime input validation and custom registration fields
  • ⚠️Limitations
  • 🔧Environnement Variables
  • 🌎i18n: msg(...)
  • 📖Build options
  • 💂Email domain acceptlist
  • 🛑Keycloak error in log
  • 🌉Context persistence
  • 💟Contributing
  • 🤔How it works
  • ⬆️Migration guides
    • ⬆️v7 -> v8
    • ⬆️v6 -> v7
    • ⬆️v6.x -> v6.12
    • ⬆️v5 -> v6
Powered by GitBook
On this page

Context persistence

PreviousKeycloak error in logNextContributing

Let's explore how we can pass query params to the URL before redirecting to the login page so that we can transport some state from the main app to the login page.

It's up to you to implement it however you want but here's a solution off the shelf for you to use

🌉
keycloakify-starter/valuesTransferredOverUrl.ts at main · codegouvfr/keycloakify-starterGitHub
Declare the variables that we want to pass over, here foo and bar
Using the values in the login pages
keycloakify-starter/KcApp.tsx at cb5844c62381efed7b303886cbe460c055a62c21 · codegouvfr/keycloakify-starterGitHub
keycloakify-starter/App.tsx at cb5844c62381efed7b303886cbe460c055a62c21 · codegouvfr/keycloakify-starterGitHub
Add the value to the url before redirecting
Cloud IAM - Keycloak Identity and Access Management as a Service
Feeling overwhelmed? Check out our exclusive sponsor's Cloud IAM consulting services to simplify your experience.
Logo
Logo
Logo
Logo