Keycloakify
GitHubHomeStarter project
v6
  • Documentation
  • Release Notes & Upgrade Instructions
  • FAQ
v6
  • ๐Ÿ‘จโ€๐Ÿ’ปQuick start
  • ๐Ÿ”ฉKeycloakify in my App
  • ๐Ÿ“งEmail customization
  • โœ’๏ธTerms and conditions
  • โœ…Realtime input validation
  • โš ๏ธLimitations
  • ๐ŸŒ‰Context persistence
  • ๐ŸŒŽi18n: msg(...)
  • ๐Ÿ’‚Email domain acceptlist
  • ๐Ÿ›‘Keycloak error in log
  • ๐Ÿ’ŸContributing
  • ๐Ÿ“–Build options
  • ๐ŸRequirements
  • โฌ†๏ธv5 -> v6
  • โฌ†๏ธv6.x -> v6.12
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub

Context persistence

PreviousLimitationsNexti18n: msg(...)

Last updated 2 years 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 varialbes that we want to pass over, here foo and bar
keycloakify-starter/App.tsx at 00059fbb805b61a7363bf58040ba471a1b1b7c43 ยท codegouvfr/keycloakify-starterGitHub
Add the value to the url before redirecting
keycloakify-starter/KcApp.tsx at 00059fbb805b61a7363bf58040ba471a1b1b7c43 ยท codegouvfr/keycloakify-starterGitHub
Using the values in the login pages
Logo
Logo
Logo