Open jordan-owen opened 6 months ago
Suggest a similar approach to OIDCAuthenticationRequestView
.
class CustomOIDCAuthenticationRequestView(OIDCAuthenticationRequestView):
"""
Overrride OIDCAuthenticationRequestView to add kc_idp_hint parameter.
"""
def get_extra_params(self, request):
keycloak_identity_provider = request.GET.get("kc_idp_hint")
extra_params = super().get_extra_params(request)
extra_params["kc_idp_hint"] = keycloak_identity_provider
return extra_params
I'm overriding the
process_request
method of SessionRefresh to dynamically add a parameterkc_idp_hint
. This parameter is different for each user, so I can't useOIDC_AUTH_REQUEST_EXTRA_PARAMS
. There should be an easier way to add parameters to a subclassed SessionRefresh.