OIDC with dynamic custom-params

32 views
Skip to first unread message

Pablo Vidaurri

unread,
Jun 11, 2025, 11:47:18 AM6/11/25
to CAS Community
I know about adding static custom params for OIDC such as:
cas.authn.pac4j.oidc[0].generic.custom-params.foo=bar

But I want to pass in a dynamic param, like language:
   cas.authn.pac4j.oidc[0].generic.custom-params.lang=zh
   cas.authn.pac4j.oidc[0].generic.custom-params.lang=jp
   cas.authn.pac4j.oidc[0].generic.custom-params.lang=en
etc, depending what the application is displaying.

From logging, i see these two method having access to the static properties:
DelegatedClientAuthenticationRedirectAction->doExecute
DelegatedClientAuthenticationRedirectAction->handleIdentityProviderWithExternalRedirect

but I can't find a straight fwd way to pass in my dynamic attribute. I just need the class with access to the TARGET url of cas/login?TARGET= so that I can inject my param.

Thanks.
-psv
Reply all
Reply to author
Forward
0 new messages