parent
7f9fce3110
commit
034c5d7f8a
|
@ -31,7 +31,7 @@ The `DirectoryInfo` can point to a directory on the local machine, or it can poi
|
|||
|
||||
The [Microsoft.AspNetCore.DataProtection.AzureStorage](https://www.nuget.org/packages/Microsoft.AspNetCore.DataProtection.AzureStorage/) package allows storing data protection keys in Azure Blob Storage. Keys can be shared across several instances of a web app. Apps can share authentication cookies or CSRF protection across multiple servers.
|
||||
|
||||
To configure the Azure Blob Storage provider, call one of the [PersistKeysToAzureBlobStorage](/dotnet/api/microsoft.aspnetcore.dataprotection.azuredataprotectionbuilderextensions.persistkeystoazureblobstorage) overloads.
|
||||
To configure the Azure Blob Storage provider, call one of the [PersistKeysToAzureBlobStorage](/dotnet/api/microsoft.aspnetcore.dataprotection.azuredataprotectionbuilderextensions.persistkeystoazureblobstorage) overloads.
|
||||
|
||||
```csharp
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
|
@ -41,7 +41,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
}
|
||||
```
|
||||
|
||||
If the web app is running as an Azure service, authentication tokens can be automatically created using [ Microsoft.Azure.Services.AppAuthentication](https://www.nuget.org/packages/Microsoft.Azure.Services.AppAuthentication/).
|
||||
If the web app is running as an Azure service, authentication tokens can be automatically created using [Microsoft.Azure.Services.AppAuthentication](https://www.nuget.org/packages/Microsoft.Azure.Services.AppAuthentication/).
|
||||
|
||||
```csharp
|
||||
var tokenProvider = new AzureServiceTokenProvider();
|
||||
|
@ -143,7 +143,7 @@ The generic parameter, `TContext`, must inherit from [DbContext](/dotnet/api/mic
|
|||
|
||||
[!code-csharp[Main](key-storage-providers/sample/MyKeysContext.cs)]
|
||||
|
||||
Create the `DataProtectionKeys` table.
|
||||
Create the `DataProtectionKeys` table.
|
||||
|
||||
# [Visual Studio](#tab/visual-studio)
|
||||
|
||||
|
|
Loading…
Reference in New Issue