-
Notifications
You must be signed in to change notification settings - Fork 1
refactor(provider): Mark ClientID as deprecated, use correct one in examples. #8
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
Conversation
There was a problem hiding this 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 deprecates the top-level ClientID
field in CredentialsProviderOptions
, removes its usage from tests and examples, and updates documentation and examples to use the correct per-provider client ID fields. It also adds a minimal, scope-less example for system-assigned managed identity.
- Deprecate and hide
CredentialsProviderOptions.ClientID
and add fallback inNewConfidentialCredentialsProvider
. - Remove
ClientID
settings from tests and examples; update README to reflect new usage. - Introduce a new minimal example (
managedidentity_systemassigned_min
) demonstrating system-assigned identity without scopes.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
providers.go | Mark ClientID deprecated, update doc comment, add fallback logic in NewConfidentialCredentialsProvider . |
providers_test.go & credentials_provider_test.go | Remove deprecated ClientID assignments from test cases. |
examples/entraid/managedidentity_userassigned/main.go | Remove deprecated ClientID from user-assigned identity example. |
examples/entraid/managedidentity_systemassigned/main.go | Switch hard-coded "SystemAssigned" string to identity.SystemAssignedIdentity . |
examples/entraid/managedidentity_systemassigned_min/* | Add new minimal example (code + go.mod) for system-assigned managed identity without scopes. |
README.md | Update all references to ClientID in examples and docs; remove top-level client ID usage. |
- go-redis-entraid will be replaced with current implementation anyway - the example runner (run_examples.sh) will update go-redis to the latest version
0781944
to
06847a5
Compare
Merging this branch will increase overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Update README and documentation.
There is no need to have
ClientID
in theCredentialsProviderOptions
since it is available in theConfidentialIdentityProviderOptions
where it is actually needed.Add additional example test with minimal configuration (without scopes) for SystemManagedIdentityProvider