pub struct EntraIdCredentialsProvider { /* private fields */ }entra-id only.Expand description
Entra ID credentials provider that uses Azure Identity for authentication
Implementations§
Source§impl EntraIdCredentialsProvider
impl EntraIdCredentialsProvider
Sourcepub fn new_developer_tools() -> RedisResult<Self>
pub fn new_developer_tools() -> RedisResult<Self>
Create a new provider using the DeveloperToolsCredential This is recommended for development and will try multiple credential types
Sourcepub fn new_developer_tools_with_scopes(
scopes: Vec<String>,
options: Option<DeveloperToolsCredentialOptions>,
) -> RedisResult<Self>
pub fn new_developer_tools_with_scopes( scopes: Vec<String>, options: Option<DeveloperToolsCredentialOptions>, ) -> RedisResult<Self>
Create a new provider using the DeveloperToolsCredential with custom scopes
Sourcepub fn new_client_secret(
tenant_id: String,
client_id: String,
client_secret: String,
) -> RedisResult<Self>
pub fn new_client_secret( tenant_id: String, client_id: String, client_secret: String, ) -> RedisResult<Self>
Create a new provider using client secret authentication (service principal)
Sourcepub fn new_client_secret_with_scopes(
tenant_id: String,
client_id: String,
client_secret: String,
scopes: Vec<String>,
options: Option<ClientSecretCredentialOptions>,
) -> RedisResult<Self>
pub fn new_client_secret_with_scopes( tenant_id: String, client_id: String, client_secret: String, scopes: Vec<String>, options: Option<ClientSecretCredentialOptions>, ) -> RedisResult<Self>
Create a new provider using client secret authentication with custom scopes
Sourcepub fn new_client_certificate(
tenant_id: String,
client_id: String,
client_certificate: ClientCertificate,
) -> RedisResult<Self>
pub fn new_client_certificate( tenant_id: String, client_id: String, client_certificate: ClientCertificate, ) -> RedisResult<Self>
Create a new provider using client certificate authentication (service principal)
Sourcepub fn new_client_certificate_with_scopes(
tenant_id: String,
client_id: String,
client_certificate: ClientCertificate,
scopes: Vec<String>,
options: Option<ClientCertificateCredentialOptions>,
) -> RedisResult<Self>
pub fn new_client_certificate_with_scopes( tenant_id: String, client_id: String, client_certificate: ClientCertificate, scopes: Vec<String>, options: Option<ClientCertificateCredentialOptions>, ) -> RedisResult<Self>
Create a new provider using client certificate authentication with custom scopes
Sourcepub fn new_system_assigned_managed_identity() -> RedisResult<Self>
pub fn new_system_assigned_managed_identity() -> RedisResult<Self>
Create a new provider using system-assigned managed identity
Sourcepub fn new_system_assigned_managed_identity_with_scopes(
scopes: Vec<String>,
options: Option<ManagedIdentityCredentialOptions>,
) -> RedisResult<Self>
pub fn new_system_assigned_managed_identity_with_scopes( scopes: Vec<String>, options: Option<ManagedIdentityCredentialOptions>, ) -> RedisResult<Self>
Create a new provider using system-assigned managed identity with custom scopes
Sourcepub fn new_user_assigned_managed_identity() -> RedisResult<Self>
pub fn new_user_assigned_managed_identity() -> RedisResult<Self>
Create a new provider using user-assigned managed identity
Sourcepub fn new_user_assigned_managed_identity_with_scopes(
scopes: Vec<String>,
options: Option<ManagedIdentityCredentialOptions>,
) -> RedisResult<Self>
pub fn new_user_assigned_managed_identity_with_scopes( scopes: Vec<String>, options: Option<ManagedIdentityCredentialOptions>, ) -> RedisResult<Self>
Create a new provider using user-assigned managed identity with custom scopes
Sourcepub fn new_with_credential(
credential_provider: Arc<dyn TokenCredential + Send + Sync>,
scopes: Vec<String>,
) -> RedisResult<Self>
pub fn new_with_credential( credential_provider: Arc<dyn TokenCredential + Send + Sync>, scopes: Vec<String>, ) -> RedisResult<Self>
Create a new provider with a custom credential implementation
Sourcepub fn start(&mut self, retry_config: RetryConfig)
pub fn start(&mut self, retry_config: RetryConfig)
Start the background refresh service
Trait Implementations§
Source§impl Clone for EntraIdCredentialsProvider
impl Clone for EntraIdCredentialsProvider
Source§fn clone(&self) -> EntraIdCredentialsProvider
fn clone(&self) -> EntraIdCredentialsProvider
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more