Add SSO OIDC ID token retrieval#234
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.39-pr.234.9e8b8b2Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.39-pr.234.9e8b8b2"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.39-pr.234.9e8b8b2"
}
}
Preview published to npm registry — try new features instantly! |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @natansil's task —— View job PR Review: Add SSO OIDC ID token retrieval
Overall this is a clean, well-tested addition. The tests are thoughtfully written (raw response, service-role auth, on-behalf-of header). I have a few observations, one of which I'd consider a real correctness concern. 🐞 Bugs / Correctness1. The response interceptor in
2. const response = await axios.get<string>(url);
return response as unknown as string;Because the interceptor already unwraps to 🔒 Security
⚡ PerformanceNo concerns — single GET, no extra work. 🧪 Test Coverage
✨ Minor / Nits
Nice work overall — the main thing to resolve before merge is the |
|
Claude finished @natansil's task —— View job PR Review: Add SSO OIDC ID token retrieval (updated)
Thanks for the updates since my last pass — most of the prior feedback has been addressed. Re-review of the current state: ✅ Addressed since last review
🐞 Correctness — the one remaining thing to resolve
So the declared type says "object with
This is the same underlying mismatch
Given the PR description says it "preserves the exported response type," option 2 (fix the test/mock) may be the intended path — but please confirm against the backend before merge. 🔒 Security
⚡ PerformanceNo concerns — single GET. 🧪 Test CoverageNow solid: happy path, raw-string response, auth headers, and a 404 error path. The only gap is the ✨ Nits
Overall this is close to mergeable — the sole blocker is reconciling View job • Branch: |
|
Claude finished @natansil's task —— View job PR Review: Add SSO OIDC ID token retrieval (re-review)
Thanks for the iterations. The implementation is noticeably simpler now — both methods are just ✅ Improvements since last pass
🐞 Correctness — the type mismatch is now silently hiddenThe previous reviews flagged the
So the declared type still says
Both would print Recommendation — pick one source of truth against the real backend contract:
The PR description says it "preserves the exported response type," but the test contradicts that. Whichever way you go, the interface, the doc examples, and the test should all agree. 🧹 Same concern applies to
|
|
Claude finished @natansil's task —— View job PR Review: Add SSO OIDC ID token retrieval
The implementation is clean and minimal — both methods are now just ✅ Strengths
🐞 Correctness — the
|
Summary
base44.asServiceRole.sso.getIdToken(userid)for the app-scoped SSO OIDC ID-token endpointPromise<string>getAccessTokenimplementation, signature, exported response type, and customer example while adding regression coverage for its existing raw-string runtime responseBackend dependency
This SDK change depends on apper PR #16698.
The SDK method requires the backend endpoint from that PR to be deployed before it can succeed.
Validation
npm testnpm run buildnpm run lint