Skip to content

Commit

Permalink
make ImdsManagedIdentityCredential internal
Browse files Browse the repository at this point in the history
  • Loading branch information
cataggar committed Jan 10, 2024
1 parent 5ea58fe commit e040cfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ use std::{str, sync::Arc};
use time::OffsetDateTime;

#[derive(Debug)]
pub enum ImdsId {
pub(crate) enum ImdsId {
SystemAssigned,
#[allow(dead_code)]
ClientId(String),
#[allow(dead_code)]
ObjectId(String),
#[allow(dead_code)]
MsiResId(String),
}

Expand All @@ -27,7 +30,7 @@ pub enum ImdsId {
///
/// Built up from docs at [https://docs.microsoft.com/azure/app-service/overview-managed-identity#using-the-rest-protocol](https://docs.microsoft.com/azure/app-service/overview-managed-identity#using-the-rest-protocol)
#[derive(Debug)]
pub struct ImdsManagedIdentityCredential {
pub(crate) struct ImdsManagedIdentityCredential {
http_client: Arc<dyn HttpClient>,
endpoint: Url,
api_version: String,
Expand Down
2 changes: 1 addition & 1 deletion sdk/identity/src/token_credentials/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub use client_certificate_credentials::*;
pub use client_secret_credentials::*;
pub use default_credentials::*;
pub use environment_credentials::*;
pub use imds_managed_identity_credentials::*;
pub(crate) use imds_managed_identity_credentials::*;
pub use options::*;
pub use specific_azure_credential::*;
pub use virtual_machine_managed_identity_credential::*;
Expand Down

0 comments on commit e040cfe

Please sign in to comment.