mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
fix(sso): prioritize Okta env_prefix and client_id when both Okta and Generic are configured
Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
646a8cae19
commit
f8f43a4295
1 changed files with 2 additions and 2 deletions
|
|
@ -1791,14 +1791,14 @@ async def auth_callback(request: Request, state: Optional[str] = None): # noqa:
|
|||
result=result,
|
||||
request=request,
|
||||
received_response=received_response,
|
||||
generic_client_id=generic_client_id or okta_client_id,
|
||||
generic_client_id=okta_client_id or generic_client_id,
|
||||
ui_access_mode=ui_access_mode,
|
||||
access_token_payload=access_token_payload,
|
||||
jwt_handler=jwt_handler,
|
||||
return_to=cp_return_to,
|
||||
env_prefix=_get_oidc_env_prefix(
|
||||
_OIDC_PROVIDER_OKTA
|
||||
if okta_client_id is not None and generic_client_id is None
|
||||
if okta_client_id is not None
|
||||
else _OIDC_PROVIDER_GENERIC
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue