Skip to content

Release 5.2.1 - Oauth scopes review - #458

Merged
david-ruiz-cko merged 1 commit into
masterfrom
release/5.2.1
Sep 16, 2026
Merged

david-ruiz-cko merged 1 commit into
masterfrom
release/5.2.1

Conversation

@david-ruiz-cko

Copy link
Copy Markdown
Contributor

This release adds a comprehensive set of constants for all OAuth 2.0 scopes supported by the Checkout.com API, making it easier and safer to specify scopes without hardcoding strings. It also introduces documentation, usage examples, and unit tests for these constants, and updates the SDK version to reflect the new feature.

New OAuth Scopes Constants:

  • Added OAuthScopes export in src/oauth-scopes.js, providing all documented and operational OAuth 2.0 scopes as constants, alphabetically ordered and frozen to prevent modification.
  • Updated src/index.js to export OAuthScopes for use in client code.

Documentation and Usage Improvements:

  • Extended the README.md with a new section explaining how to use the OAuthScopes constants and how TypeScript users can type their scope lists.

Testing and Reliability:

  • Added a new test suite in test/oauth-scopes/oauth-scopes-unit.js to verify that all scope constants are correct, unique, alphabetically ordered, and immutable.
  • Updated test/issuing/issuing-common.js to use the new OAuthScopes constants instead of hardcoded scope strings, and removed references to retired/invalid scopes.

Versioning:

  • Bumped the package version to 5.2.0 in package.json to reflect the addition of the new feature.

@david-ruiz-cko
david-ruiz-cko requested a review from a team September 15, 2026 13:01
@agent-wall-e

agent-wall-e Bot commented Sep 15, 2026

Copy link
Copy Markdown

🟢 Risk Classification: LOW

Approval route: AI Auto-Approval
Rollback controls: Automated Instant Rollback + feature flags

Classification reasons

  • 2.2.7_dependency_upgrade

Operational gates

  • ✅ jira_ticket
  • ✅ independent_review

Files analysed: 1


wall-e 2026.06.19-02 · policy 376219bc71e6…

@agent-wall-e

agent-wall-e Bot commented Sep 15, 2026

Copy link
Copy Markdown
🔬 Debug — why this classification?

Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.

Reason code Kind Clause Meaning
2.2.7_dependency_upgrade classifying §2.2.7 All files are manifest + lockfile, and no security-sensitive package was touched.

Kinds:

  • classifying — this rule contributed to the chosen tier.
  • informational — context only; did not by itself decide the tier.

See issue #3 for the proposal to formalise this map as Appendix A of the standards doc.

wall-e 2026.06.19-02 · debug

@sonarqubecloud

Copy link
Copy Markdown

@agent-wall-e agent-wall-e Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved — this PR meets all Low-risk criteria.

All checks passed, no unresolved comments, and the change classification is:

  • 2.2.7_dependency_upgrade

wall-e 2026.06.19-02 · policy 376219bc71e6…

@david-ruiz-cko
david-ruiz-cko merged commit f99ae82 into master Sep 16, 2026
3 checks passed
@david-ruiz-cko
david-ruiz-cko deleted the release/5.2.1 branch September 16, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants