-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add Managed Identity Support #552
Merged
Merged
+2,576
−65
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Readme suggestion update Co-authored-by: Bogdan Gavril <bogavril@microsoft.com>
https://github.com/AzureAD/microsoft-authentication-library-for-go into andyohart/managed-identity-basic-class-implementation
…-class-implementation Implement Initial API Classes
Added a simple version of getting token and printing it reformatting code.
Added tests and implementation for SAMI IMDS
Reverted changes in the test app
Formatting changes
Added method for UAMI
Updated the some code and cleaned up some comments and print statement
Updated the key for the resource Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
Updated the token from url function to a reaquest based function
…icrosoft-authentication-library-for-go into acquire-token-for-mise
Updated test to fail not only return error
Added tests for failure and success for SAMI
added context to request
Updated the tests to check for errors more correctly
Update some test and used mock.Client some refactoring for comments
Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
…icrosoft-authentication-library-for-go into acquire-token-for-mise
* adds tests for azure ml
* update tests
Azure ML Support
* Service fabric ssl checker * adding new test * Service fabric and its tests * Updated Test to check for supported sources * Removed some unused code * Removed the SSL validation * Updated the get token method * Update apps/managedidentity/servicefabric_test.go Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com> --------- Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
Remove redundant ClientOptions type
4gust
approved these changes
Feb 13, 2025
bgavrilMS
approved these changes
Feb 13, 2025
chlowell
reviewed
Feb 13, 2025
Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
…AD/microsoft-authentication-library-for-go into andyohart/managed-identity
Co-authored-by: Charles Lowell <10964656+chlowell@users.noreply.github.com>
* Update documentation file to link to full suite of sample documentation instead of just showing IMDS documentation
…AD/microsoft-authentication-library-for-go into andyohart/managed-identity
* Added a new error InvalidJsonErr * Update confidential_test.go
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary: Add Managed Identity Support
Branch:
andyohart/managed-identity
Merging into:
main
Overview
This PR introduces Managed Identity support to the Microsoft Authentication Library for Go through a new client. The new client supports multiple sources for managed identities, including:
The client can handle both System Assigned Managed Identities and User Assigned Managed Identities.
For user-assigned identities, you can specify:
Key Changes
Code Sample
Here's a basic example of how to use the new managed identity client to acquire a token: