Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UnsupportedOperationException when not providing scopes to AzureIdentityAccessTokenProvider #1130

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

joakibj
Copy link
Contributor

@joakibj joakibj commented Mar 19, 2024

@joakibj
Copy link
Contributor Author

joakibj commented Mar 19, 2024

@microsoft-github-policy-service agree

andrueastman
andrueastman previously approved these changes Mar 20, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution.
Can you:

  1. update l132 to 135 to work on a new array instead of the field, so the implementation is identical to the dotnet one
  2. bump the patch version (today's date) in the changelog so we can promptly release those changes.
  3. update the version accordingly in gradle.properties and in the user agent options

This comment was marked as outdated.

@baywet
Copy link
Member

baywet commented Mar 20, 2024

update: I've done the changelog changes, only the other points are left

Copy link
Contributor

Conflicts have been resolved. A maintainer will take a look shortly.

…et implementation with regard to internal handling of scopes

* Updated to version 1.1.1 in gradle.properties
* Updated to version 1.1.1 in UserAgentHandlerOption
* Fixed junit assert usage. API is expected, actual. Not actual, expected
@joakibj
Copy link
Contributor Author

joakibj commented Mar 20, 2024

Please see my latest update

  • update l132 to 135 to work on a new array instead of the field, so the implementation is identical to the dotnet one
  • update the version accordingly in gradle.properties and in the user agent options

There is also a difference from the dotnet implementation at line 66, as it seems dotnet does case insensitive ordering of the scopes. But I believe this is out of scope 😎 for this pull request / issue

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes!

@baywet baywet enabled auto-merge March 20, 2024 16:09
@baywet baywet merged commit 59a86b0 into microsoft:main Mar 20, 2024
8 checks passed
@joakibj joakibj deleted the fix/default-scope branch March 21, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Configuring GraphServiceClient with no scope throws UnsupportedOperationException during runtime
3 participants