Files
probo/pkg/coredata
Aurélien Sibiril 6390b15807 feat(coredata): add widest-scope connector loader
LoadOneByOrganizationIDAndProvider returns the effective OAuth2
connector for an (organization, provider) pair. When legacy rows
leave multiple candidates behind (pre-auto-reconnect installs), it
picks the row with the widest stored scope set and tiebreaks by
most recent updated_at.

This is correct for Google Workspace where the SCIM bridge's
4-scope row must win over the access review's 2-scope row so the
caller always sees a token that can run SCIM operations. The
selector reads the decrypted scope set through Connection.Scopes,
so it is robust against token-refresh updated_at churn that would
mislead a pure SQL ORDER BY.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
2026-04-13 19:24:46 +02:00
..
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-13 14:50:42 +04:00
2026-04-13 14:50:41 +04:00
2026-04-13 14:50:41 +04:00
2026-04-13 14:50:41 +04:00
2026-04-13 14:50:41 +04:00
2026-04-13 14:50:41 +04:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-03-19 16:37:51 +01:00
2026-03-19 16:37:51 +01:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 08:33:37 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00
2026-04-03 11:56:06 +02:00