This is the documentation for v8, checkout the latest version
Keycloakify
v8
  • Keycloakify
  • 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

Was this helpful?

Context persistence

PreviousKeycloak error in logNextContributing

Last updated 2 days ago

Was this helpful?

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
keycloakify-starter/App.tsx at cb5844c62381efed7b303886cbe460c055a62c21 ยท codegouvfr/keycloakify-starterGitHub
Add the value to the url before redirecting
keycloakify-starter/KcApp.tsx at cb5844c62381efed7b303886cbe460c055a62c21 ยท codegouvfr/keycloakify-starterGitHub
Using the values in the login pages
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