You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(slm-sso): SSO login passes a stand-in user without is_platform_admin to create_token_response, which raises #18322
All three SLM SSO completion paths in autobot-slm-backend/api/sso_auth.py build a stand-in user with type("User", (), {"username": ..., "is_admin": ...})() and pass it to auth_service.create_token_response. That function reads user.is_platform_admin (role_for_user(user.is_platform_admin)). The stand-in has no such attribute, so the call raises AttributeError. None of the surrounding except clauses catch it (SSOAuthenticationError, SSOProviderNotFoundError), so an SSO login cannot complete.
Found by code reading while enumerating role-claim producers for #18263. It has not been reproduced against a running SLM.
Acceptance criteria
The SSO paths pass the real User (or an object carrying username and is_platform_admin) to create_token_response. The issued token carries role = admin or user.
Test: each SSO completion path issues a token whose role claim matches the user's platform-admin flag.
Activity
fix(slm-sso): SSO signs in only to an eligible account and links by e…
fix(sso,rbac): org-bound SSO never links across orgs; the grant repor…