Conversation
Removes the ability to specify OAuth scopes for APS 3-legged login via an input argument. The login scope is now strictly determined by the `APS_SCOPE` environment variable, defaulting to `data:read` if not set. This prevents granting excessive permissions and ensures better control over requested scopes.
WalkthroughThe PR simplifies the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/index.ts (1)
145-155: Disallow extra args inaps_loginschema.With empty
properties, callers can still pass undeclared fields (e.g.,scope) unlessadditionalPropertiesis set tofalse. Tightening this avoids confusion and reinforces the “no per-call scope” rule.♻️ Proposed tweak
inputSchema: { type: "object" as const, properties: {}, + additionalProperties: false, },🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/index.ts` around lines 145 - 155, The aps_login command's inputSchema currently allows undeclared fields because it defines type: "object" with empty properties; update the schema for aps_login (inputSchema) to explicitly disallow extra arguments by adding additionalProperties: false so callers cannot pass fields like scope per-call. Modify the inputSchema object in the aps_login definition to include additionalProperties: false while keeping type and properties unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/index.ts`:
- Around line 145-155: The aps_login command's inputSchema currently allows
undeclared fields because it defines type: "object" with empty properties;
update the schema for aps_login (inputSchema) to explicitly disallow extra
arguments by adding additionalProperties: false so callers cannot pass fields
like scope per-call. Modify the inputSchema object in the aps_login definition
to include additionalProperties: false while keeping type and properties
unchanged.
|
🎉 This PR is included in version 1.2.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Removes the ability to specify OAuth scopes for APS 3-legged login via an input argument. The login scope is now strictly determined by the
APS_SCOPEenvironment variable, defaulting todata:readif not set.This prevents granting excessive permissions and ensures better control over requested scopes.
Summary by CodeRabbit