Skip to content

feat: updated router GET groupconfigs for Oauth consumers - #598

Merged
petruki merged 1 commit into
masterfrom
staging
Nov 29, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Nov 29, 2026

Copy link
Copy Markdown
Member

This pull request primarily updates dependencies and enhances the authorization logic for group configuration endpoints. The most significant changes are the upgrade of several dependencies (notably mongoose and eslint), and the introduction of a new authAny middleware to allow broader access to the /groupconfig GET endpoint, along with corresponding test coverage for OAuth access.

Dependency upgrades:

  • Upgraded mongoose from ^9.13.0 to ^9.13.1 in both package.json and npm-shrinkwrap.json to pull in the latest bug fixes and improvements. [1] [2] [3]
  • Upgraded eslint from ^10.15.0 to ^10.16.0 in both package.json and npm-shrinkwrap.json, along with related dependencies such as @eslint/config-array and @eslint-community/regexpp. [1] [2] [3] [4] [5]
  • Updated several other dependencies and devDependencies in npm-shrinkwrap.json, including @babel/core, @babel/generator, @babel/helpers, @babel/traverse, @types/body-parser, @types/node, and more, to their latest patch versions for improved stability and compatibility. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Authorization improvements:

  • Introduced the authAny middleware and applied it to the /groupconfig GET endpoint in src/routers/group-config.js, allowing both authenticated users and OAuth tokens to access group configuration listings. [1] [2]

Testing enhancements:

  • Added new tests in tests/oauth.test.js to verify that group listing via /groupconfig is accessible with an OAuth access token, while group creation remains protected and inaccessible with such a token.

@petruki petruki added this to the v1.4.1 milestone Nov 29, 2026
@petruki petruki self-assigned this Nov 29, 2026
@petruki petruki added the ai-generated Indicates that AI tools were used to generate this change label Nov 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki
petruki merged commit 73660e5 into master Nov 29, 2026
5 checks passed
@petruki
petruki deleted the staging branch November 29, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Indicates that AI tools were used to generate this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant