Add a controlled account-selection login flow for users who sign in with an account without a SimpleChat role. - #1480
Merged
Paul Lizer (paullizer) merged 3 commits intoSep 19, 2026
Conversation
with an identity that lacks the required SimpleChat app role and show the current signed-in account on the access-denied page.
Collaborator
|
Copilot resolve the merge conflicts in this pull request |
Collaborator
|
Xeelee33 thats a great idea! please resolve pr conflicts and i will get this merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Current behavior: when a user logs into SimpleChat via SSO using an account that doesn't have a SimpleChat role the permission denied page does not provide any information about what account they are signed in as or give them a way to switch to a different account. This fix updates the permission denied page to show what account the user is trying to sign in as and provides a button that explicitly directs them to the account picker screen to choose the correct account.
/login?select_account=1flow that requests the Microsoft Entra account picker without changing the normal sign-in experience or accepting arbitrary OAuth prompt values.#EXT#UPNs.Updated access-denied page:

Linked issue
No linked issue.
Release Notes & Latest Features
Is this visible to end users?
Is this admin-facing (Admin Settings, governance, deployment, config)?
Should this become a Latest Feature card?
Screenshot needed for the card?
Version bump
config.pyVERSIONthird segment bumped to0.261.030version.txtnot needed becausedeployerswas not changedTesting / validation
python functional_tests/test_cross_cloud_account_selection_login.py— 6/6 passedpytesttest_cross_cloud_account_selection_login.pytest_route_blueprint_policy_inventory.pytest_route_unauthenticated_policy_contract.pytest_route_policy_test_coverage.py-q— 14 passedpython functional_tests/test_docs_site_quality.py— 6/6 passedgit diff --checkpassed.Documentation
CROSS_CLOUD_ACCOUNT_SELECTION_LOGIN_FIX.mdSecurity checklist
/loginroute retains its Swagger security decorator.sanitize_settings_for_user().#EXT#resource-tenant UPNs are not displayed.