Skip to content

Conversation

yuriyostapenko
Copy link
Contributor

While resource is still supported for backwards compatibility, it conflicts with a standard parameter in the newer OAuth specs.

This is a breaking change and will be released with v2.

While resource is still supported for backwards compatibility, it conflicts with a standard parameter in the newer OAuth specs.
@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 05:46
Copy link

@Copilot 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

This PR renames the resource parameter to target in the resource scoped grant implementation to align with newer OAuth specifications while maintaining backwards compatibility. This is a breaking change planned for v2 release.

  • Renames parameter from resource to target across the ResourceScopedAccessGrantParameters class
  • Updates the token client implementation to use the new parameter name
  • Modifies test validation to check for the new target parameter

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ResourceScopedAccessGrantParameters.java Updates constructor parameters, field names, getter method, and documentation from resource to target
ResourceScopedAccessGrantTokenClient.java Changes HTTP parameter name from resource to target when building POST request
ValidResourceScopedAccessRequestCallback.java Updates test validation to check for target parameter instead of resource

@yuriyostapenko yuriyostapenko merged commit 4262e31 into main Jul 23, 2025
1 check passed
@yuriyostapenko yuriyostapenko deleted the rename-resource-to-target branch July 23, 2025 05:47
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.

1 participant