pomerium/proxy
Caleb Doxsey 622519e901
databroker: update identity manager to use route credentials (#5728)
## Summary
Currently when we refresh sessions we always use the global IdP
credentials. This PR updates the identity manager to use route settings
when defined.

To do this a new `idp_id` field is added to the session stored in the
databroker.

## Related issues
-
[ENG-2595](https://linear.app/pomerium/issue/ENG-2595/refresh-using-custom-idp-uses-wrong-credentials)
- https://github.com/pomerium/pomerium/issues/4759

## Checklist

- [x] reference any related issues
- [x] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [x] ready for review
2025-07-15 18:04:36 -06:00
..
portal config: use stable route ids for authorize matching and order xds responses (#5618) 2025-05-19 10:52:15 -06:00
data.go databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
data_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
handlers.go mcp: add global runtime flag (#5604) 2025-05-02 16:33:42 -04:00
handlers_portal.go proxy: add short timeout for logo discovery (#5506) 2025-02-28 09:59:03 -07:00
handlers_portal_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
handlers_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
proxy.go mcp: add global runtime flag (#5604) 2025-05-02 16:33:42 -04:00
proxy_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
state.go multi-domain login redirects (#5564) 2025-04-04 13:14:30 -07:00