pomerium/internal/authenticateflow
Kenneth Jenkins 418ee79e1a
authenticate: rework session ID token handling (#5178)
Currently, the Session proto id_token field is populated with Pomerium
session data during initial login, but with IdP ID token data after an
IdP session refresh.

Instead, store only IdP ID token data in this field.

Update the existing SetRawIDToken method to populate the structured data
fields based on the contents of the raw ID token. Remove the other code
that sets these fields (in the authenticateflow package and in
manager.sessionUnmarshaler).

Add a test for the identity manager, exercising the combined effect of
session claims unmarshaling and SetRawIDToken(), to verify that the
combined behavior is preserved unchanged.
2024-07-29 12:43:50 -07:00
..
authenticateflow.go authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
identityprofile.go authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
identityprofile_test.go authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
request.go authenticateflow: add stateful flow (#4822) 2023-12-07 09:54:42 -08:00
request_test.go authenticateflow: move stateless flow logic (#4820) 2023-12-06 16:55:57 -08:00
stateful.go authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
stateful_test.go authenticate: rework session ID token handling (#5178) 2024-07-29 12:43:50 -07:00
stateless.go core/identity: dynamic authenticator registration (#5105) 2024-05-07 16:45:39 -06:00