pomerium/pkg/grpc/session
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
..
session.go databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
session.pb.go databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
session.proto databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
session_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00