mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
authenticate: add databroker versions to session cookie (#2709)
* authenticate: add databroker versions to session cookie authorize: wait for databroker synchronization on updated sessions * fix test
This commit is contained in:
parent
b2c76c3816
commit
d390e80b30
6 changed files with 192 additions and 32 deletions
|
@ -63,6 +63,13 @@ type State struct {
|
|||
// Programmatic whether this state is used for machine-to-machine
|
||||
// programmatic access.
|
||||
Programmatic bool `json:"programmatic"`
|
||||
|
||||
// DatabrokerServerVersion tracks the last referenced databroker server version
|
||||
// for the saved session.
|
||||
DatabrokerServerVersion uint64 `json:"databroker_server_version,omitempty"`
|
||||
// DatabrokerRecordVersion tracks the last referenced databroker record version
|
||||
// for the saved session.
|
||||
DatabrokerRecordVersion uint64 `json:"databroker_record_version,omitempty"`
|
||||
}
|
||||
|
||||
// NewSession updates issuer, audience, and issuance timestamps but keeps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue