You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/preview/03-Features/secret-store/azure-functions.md
+50-4
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ layout: default
4
4
---
5
5
6
6
# Using secret store within Azure Functions
7
+
This separate documentation section explains how the Arcus secret store can be used within Azure Functions environments (both in-process and isolated).
8
+
9
+
## Using secret store within in-process Azure Functions
10
+
To more easily configure the secret store, we provided a dedicated package that builds on top of the `IFunctionsHostBuilder`:
7
11
8
12
## Installation
9
13
For this feature, the following package needs to be installed:
@@ -12,9 +16,8 @@ For this feature, the following package needs to be installed:
Once the secret providers are defined, the `ISecretProvider` can be used as any other registered service:
43
-
44
46
```csharp
45
47
usingArcus.Security.Core;
46
48
@@ -62,3 +64,47 @@ namespace Application
62
64
}
63
65
}
64
66
```
67
+
68
+
## Using secret store within isolated Azure Functions
69
+
Since isolated Azure Functions are built with the default `HostBuilder`, the general secret store packages can be used in this environment. No need to install the dedicated `Arcus.Security.AzureFunctions` package.
70
+
71
+
### Usage
72
+
Using the available extensions on the `HostBuilder` or `IServiceCollection`, the secret store can be added, just like a Web API or console application.
0 commit comments