Skip to content

4189 Refactor OAuth2 Client Credentials in HttpClientConnection for better parameter handling and scope support.#4197

Merged
igorbeslic merged 1 commit intomasterfrom
4189
Feb 16, 2026
Merged

4189 Refactor OAuth2 Client Credentials in HttpClientConnection for better parameter handling and scope support.#4197
igorbeslic merged 1 commit intomasterfrom
4189

Conversation

@ivicac
Copy link
Contributor

@ivicac ivicac commented Feb 14, 2026

Added support for scopes

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the HTTP Client component’s OAuth2 Client Credentials authorization flow to improve parameter handling (typed Parameters/Context usage) and add support for optional scopes when requesting an access token.

Changes:

  • Moves OAuth2 Client Credentials token acquisition into an explicit .apply(...) implementation.
  • Adds optional scope form parameter handling (comma-delimited → space-delimited).
  • Switches to typed Parameters/Context and uses responseType(JSON) configuration for the token request.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

@ivicac ivicac requested a review from igorbeslic February 16, 2026 07:08
@igorbeslic igorbeslic merged commit a632216 into master Feb 16, 2026
7 checks passed
@igorbeslic igorbeslic deleted the 4189 branch February 16, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants