AzureKeyVault Class

Singleton interface for Azure AzureKeyVault usage

This interface is used to retrieve secrets from the Azure Key Vault. In the codebase nor the config files,
no connection strings, passwords or other sensitive information is being stored.
Instead, the Azure Key Vault is used to store these secrets. This interface is used to retrieve these secrets.
The only thing the configuration files contain are the URI to the Azure Key Vault.
Azure itself contains access policies to allow the Nexus environment to access the Key Vault.
For developers during debugging, one has to be logged in with Azure to access the Key Vault.
This can be done by going to Tools -> Options -> Azure Service Authentication in Visual Studio and logging in there.

The KeyVault is also used to store ApiTokenDto secrets belonging to users.

Definition

Namespace: MobileTrack.Common.KeyVault
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal sealed class AzureKeyVault : IAzureKeyVault
Inheritance
Object    AzureKeyVault
Implements
IAzureKeyVault

Constructors

AzureKeyVault Default constructor enacted via the dependency injection

Methods

CreateKeyForCompanyAsync 
GetSecret Returns the value of a Client Secret
GetSecretAsync 
SetSecret 
SetSecretAsync 
SignSasTokenAsync Signs a SAS token for the given data using the key of the company.
VerifySasTokenAsync Verifies a signature using the key of the company by trying all enabled versions of the key.

See Also