opencode-codebuddy-external-auth
Advanced tools
+3
-0
@@ -208,2 +208,4 @@ "use strict"; | ||
| async function buildAuthHeaders(accessToken) { | ||
| const payload = decodeJwtPayload(accessToken); | ||
| const roles = payload?.realm_access?.roles || payload?.resource_access?.account?.roles; | ||
| const tenantId = cachedTenantId || resolveTenantId(accessToken); | ||
@@ -228,2 +230,3 @@ let enterpriseId = cachedEnterpriseId || resolveEnterpriseId(accessToken); | ||
| console.log(`[codebuddy-external] IDs: tenant=${tenantId ? "ok" : "empty"}, enterprise=${enterpriseId ? "ok" : "empty"}, user=${userId ? "ok" : "empty"}`); | ||
| console.log(`[codebuddy-external] Token payload: iss=${payload?.iss ? "ok" : "empty"}, sub=${payload?.sub ? "ok" : "empty"}, roles=${Array.isArray(roles) ? roles.length : 0}`); | ||
| } | ||
@@ -230,0 +233,0 @@ if (!tenantId && !warnedTenantId) { |
+1
-1
| { | ||
| "name": "opencode-codebuddy-external-auth", | ||
| "version": "1.0.20", | ||
| "version": "1.0.21", | ||
| "description": "OpenCode plugin for CodeBuddy External (IOA) authentication", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
36810
0.9%836
0.36%