pomerium/internal/authenticateflow
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
..
authenticateflow.go ssh: implement authorization policy evaluation (#5665) 2025-07-01 12:04:00 -07:00
authenticateflow_int_test.go
identityprofile.go
identityprofile_test.go
request.go
request_test.go
stateful.go databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
stateful_test.go chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
stateless.go databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00