Commit ea38c55
fix(smartling): use oauthCallback to fix broken OAuth authentication [AIS-82] (#11049)
* fix(smartling): use oauthCallback to fix id_token not present in TokenSet
Smartling's SSO returns only access_token and refresh_token — no id_token.
client.callback() calls validateIdToken() after the code exchange and throws
"id_token not present in TokenSet" when id_token is absent. client.oauthCallback()
performs the same authorization_code grant but skips id_token validation entirely,
which is correct here since the app only ever uses access_token and refresh_token.
Confirmed broken in prod via CloudWatch: sls-apps-smartling-prd-app logging
"Smartling OAuth failed with message: id_token not present in TokenSet" on every
auth attempt.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(smartling): update mock to use oauthCallback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent cabf541 commit ea38c55
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments