Browse Source
Replace the per-arm `if sso_enabled && sso_only` guard in `login()` with a `check_sso_only(grant_type)` helper called once before the grant dispatch. Mirrors upstream Bitwarden's `SsoRequestValidator`: under SSO_ONLY every grant is rejected unless explicitly whitelisted (`authorization_code`, `client_credentials`, `refresh_token`). A future grant cannot silently bypass SSO — every new `grant_type` must be added to the explicit whitelist to be allowed under SSO_ONLY.pull/7297/head
1 changed files with 14 additions and 1 deletions
Loading…
Reference in new issue