Commit 84c4670
committed
Preserve sso context in authentication event deserialisation
The Events API includes an sso object (with connection_id,
organization_id, and optionally session_id) in authentication.sso_*
event data, but the deserialiser was silently dropping it.
Adds AuthenticationEventSso and AuthenticationEventSsoResponse
interfaces, and a deserializeAuthenticationEventSso helper that
follows the existing deserializeOauthTokens pattern for nested
optional objects with snake_case conversion.1 parent 084e463 commit 84c4670
2 files changed
Lines changed: 27 additions & 0 deletions
File tree
- src/user-management
- interfaces
- serializers
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | 20 | | |
| |||
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| 32 | + | |
20 | 33 | | |
21 | 34 | | |
22 | 35 | | |
| |||
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
| |||
0 commit comments