-
Notifications
You must be signed in to change notification settings - Fork 268
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
Support custom ImdsId for AppServiceManagedIdentityCredential. #2284
base: main
Are you sure you want to change the base?
Changes from 2 commits
93d9fc8
c646422
30d9258
b354206
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,10 @@ pub struct AppServiceManagedIdentityCredential { | |
} | ||
|
||
impl AppServiceManagedIdentityCredential { | ||
pub fn new(options: impl Into<TokenCredentialOptions>) -> azure_core::Result<Arc<Self>> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chlowell @scottaddie should this type even be exposed publicly? I'm close to refactoring There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A unified For any Managed Identity credential it is important to be somehow able to specify whether to use a specific ClientId or just use the endpoints default. |
||
pub fn new( | ||
id: ImdsId, | ||
options: impl Into<TokenCredentialOptions>, | ||
) -> azure_core::Result<Arc<Self>> { | ||
let options = options.into(); | ||
let env = options.env(); | ||
let endpoint = &env | ||
|
@@ -43,7 +46,7 @@ impl AppServiceManagedIdentityCredential { | |
API_VERSION, | ||
SECRET_HEADER, | ||
SECRET_ENV, | ||
ImdsId::SystemAssigned, | ||
id, | ||
), | ||
})) | ||
} | ||
|
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.
@hallipr can we get the bot hooked up to make these changes automatically soon?