Add selection-based tenant resolver and tenant selection page flow with single-tenant auto-select - #46
Merged
Conversation
Agent-Logs-Url: https://github.com/Cratis/AuthProxy/sessions/8002ad56-7619-4213-b489-6d41e3194b1c Co-authored-by: einari <134365+einari@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Cratis/AuthProxy/sessions/8002ad56-7619-4213-b489-6d41e3194b1c Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add tenant resolver based on selection screen
Add selection-based tenant resolver and tenant selection page flow
May 26, 2026
Collaborator
|
@copilot if there is only one tenant in the list, use that and don’t show selector |
Agent-Logs-Url: https://github.com/Cratis/AuthProxy/sessions/3e4b20fb-3d5c-4e88-9d38-0f9158bf791f Co-authored-by: einari <134365+einari@users.noreply.github.com>
Contributor
Author
Implemented in f5e73a3. When tenant selection returns exactly one tenant, AuthProxy now sets |
Copilot
AI
changed the title
Add selection-based tenant resolver and tenant selection page flow
Add selection-based tenant resolver and tenant selection page flow with single-tenant auto-select
May 26, 2026
einari
marked this pull request as ready for review
May 26, 2026 11:50
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
Adds a selection-based tenant resolver with an overridable tenant selection page flow, and now auto-selects the tenant when the endpoint returns exactly one option.
Added
Selectiontenant resolution strategy and typedSelectionOptionswith configurableTenantsEndpointTenantSelectionMiddlewarethat:.cratis-tenantsfor page renderingselect-tenant.htmlwhen no tenant is selected/.cratis/select-tenant?tenantId=...&returnUrl=...and writes.cratis-tenantselect-tenant.htmlDocumentation/configuration/tenant-selection.mdChanged
.cratis-tenants,.cratis-tenant)select-tenant.html)/.cratis/select-tenant)Selectionas direct tenant-id resolutionFixed
Removed
Security
Deprecated
{ "Cratis": { "AuthProxy": { "TenantResolutions": [ { "Strategy": "Selection", "Options": { "TenantsEndpoint": "https://platform.example.com/api/tenants/selectable" } } ] } } }