Hi All,
When application is protected with keycloak and we hit application URL it will redirect to keycloak login page where we provide credentials after successful authentication we can see the application.
In my requirement after successful authentication while redirecting to application I want to add some parameter into the header.Can I do that can I add some extra value in header of redirect URL ?
Hi @gawai.manisha99 I am also facing same challenge, if you found the solution, can you please share here?
You are in the middle of an OIDC redirection, so there is no easy way to add headers. Adding custom query parameters is not recommended, as it breaks the OIDC standard.
If it is a live/dead decision and you absolutely must do it for some unusual reason, you could use the state parameter with a custom value format (even if unconventional). However, this approach is not recommended - and I’m not even sure why I’m mentioning it as a valid option; maybe it’s because it’s Friday, but on Monday, I’ll deny I said this!
1 Like