New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

opencode-codebuddy-external-auth

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-codebuddy-external-auth - npm Package Compare versions

Comparing version
1.0.19
to
1.0.20
+12
-0
dist/plugin.js

@@ -85,2 +85,12 @@ "use strict";

}
function extractEnterpriseIdFromRoles(roles) {
if (!roles || roles.length === 0)
return "";
for (const role of roles) {
const match = role.match(/group-admin:([A-Za-z0-9-]+)/);
if (match?.[1])
return match[1];
}
return "";
}
function resolveEnterpriseId(accessToken) {

@@ -90,2 +100,3 @@ if (CONFIG.enterpriseId)

const payload = decodeJwtPayload(accessToken);
const roles = payload?.realm_access?.roles || payload?.resource_access?.account?.roles;
return (payload?.enterprise_id ||

@@ -95,2 +106,3 @@ payload?.enterpriseId ||

payload?.entId ||
extractEnterpriseIdFromRoles(roles) ||
"");

@@ -97,0 +109,0 @@ }

+1
-1
{
"name": "opencode-codebuddy-external-auth",
"version": "1.0.19",
"version": "1.0.20",
"description": "OpenCode plugin for CodeBuddy External (IOA) authentication",

@@ -5,0 +5,0 @@ "main": "dist/index.js",