Feature/keycloak integration#18
Conversation
- Fixed wrapper issues in code
- Added a scroll bar to code uploader - Addded connet button
- So we can setup file manager easily in that way
…/Nexus-Tools into feature/turtle_intergration
…ticGen/Nexus-Tools into feature/code_uploader
- UI fixes in REPL - Disconneted issue in ESP32
- currently can view files in esp32 - currently can download each file separatly
- Now user can view file content from esp32
- users can access each by swithcing tabs
- Users an get multiple tabs and code - Also file manager view files using code editor -
- removed uncessary functions
… feature/code_uploader
- Added new run in esp32 button - changed place in skulpt canvas
- When we type we had always click the typing area Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR #18: Feature/Keycloak IntegrationThis PR wires up Keycloak/NextAuth across all three apps via a shared 9 findings: 2 Critical · 3 High · 4 Medium Critical1. Keycloak roles never extracted - every user permanently gets The Fix: accept async jwt({ token, account, profile }) {
if (account) {
// ... existing assignments ...
const p = profile as any;
token.roles = p?.realm_access?.roles ?? p?.roles ?? [];
}
}2. Hardcoded client secret fallback
Fix: fail fast instead of falling back: const clientSecret = process.env.KEYCLOAK_CLIENT_SECRET;
if (!clientSecret) throw new Error("KEYCLOAK_CLIENT_SECRET env var is required");High3. Token refresh failure swallowed silently - no error flag, infinite retry When the Keycloak refresh endpoint returns non-2xx (expired refresh token, revoked session, network failure), the code logs the error and Fix — standard NextAuth pattern: if (!response.ok) {
return { ...token, error: "RefreshAccessTokenError" };
}
// same in the catch blockThen check 4. Both Fix: set 5. Refresh token sent to the browser in the session object The session callback includes Fix: remove Medium6. On a 401, the code fetches 7. Dead In Next.js App Router, only 8. A libcurl Netscape-format cookie store is now tracked in version control. If a developer runs Fix: 9.
|
No description provided.