acceptable-dress-21970
10/09/2024, 9:47 AMA
that logs users in using hydra with oauth2. When hydra redirects them to the login challenge url it only passes login_challenge
query param and nothing else.
My application A
and the custom UI are on different domains so I can't share cookies.
My application A
is now on dark theme and my custom UI is on light theme by default. The only way to share the initial theme for my custom UI is to pass some query param to the login page.
The solution:
when initiating the oauth2 flow I can pass custom query params like this:
<http://ory.hydra.com/oauth2/auth>
?client_id=....
&scope=...
&redirect_uri=...
&custom_theme_mode=dark
&custom_lang=ar
When hydra redirects to my custom UI it will redirect to the following:
<http://my-custom-ui.com/login>
?login_challenge=...
&custom_theme_mode=dark
&custom_lang=ar
acceptable-dress-21970
10/14/2024, 10:45 AMmagnificent-energy-493
delightful-noon-48365
10/23/2024, 10:36 AMacceptable-dress-21970
10/23/2024, 10:57 AMMy applicationand the custom UI are on different domains so I can't share cookies.A
delightful-noon-48365
10/23/2024, 10:59 AM