Context: using https://www.keycloak.org/ as an authentication provider.
I have a use case where I need to render a block of HTML depending on the value of a query string param in the login page. The value will be coming from the login URL similar to this:
http://localhost:8080/auth/realms/default/protocol/openid-connect/auth?...&customvar=1
I would like to have customvar
available in the login.ftl
to accomplish my objective. So far I have tried to retrieve the baseUrl from the client bean, but it's not available, the app crashes when I attempt to access baseUrl. I have also attempted to access the request url in the ${url}
, but it's not available either.
Thanks in advance for any help.
尝试 href="${client.baseUrl}" 它应该返回一个客户端 baseUrl。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.