Commit 98c0b47
authored
fix(google): preserve username when absent in refresh token (#4758)
Google sometimes does not return username and other claims during
token refresh, which is correct according to OIDC spec. Instead of
calling the userinfo endpoint (which Google throttles more aggressively),
preserve the previous username if absent in the refreshed ID token.
This fix is specific to the Google connector and does not modify
the general refresh flow.
Fixes #4458
Signed-off-by: Hisam Fahri <iam@hisamafahri.com>1 parent d7ba134 commit 98c0b47
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
250 | 259 | | |
251 | 260 | | |
252 | 261 | | |
| |||
0 commit comments