Skip to content

Commit 33a6e64

Browse files
committed
Updates
1 parent bfe78bc commit 33a6e64

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

aspnetcore/blazor/security/account-confirmation-and-password-recovery.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ Confirm in the Azure or Entra portal that the app has been granted access to the
8787

8888
> [!IMPORTANT]
8989
> A key vault secret is created with an expiration date. Be sure to track when a key vault secret is going to expire and create a new secret for the app prior to that date passing.
90-
The following `GetKeyVaultSecret` method retrieves a secret from a key vault. Add this method to the server project. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
90+
91+
Add the following `AzureHelper` class to the server project. The `GetKeyVaultSecret` method retrieves a secret from a key vault. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
9192

9293
`Helpers/AzureHelper.cs`:
9394

@@ -118,7 +119,7 @@ public static class AzureHelper
118119
}
119120
```
120121

121-
Where services are registered in the server project's `Program` file, obtain and bind the secret with Options configuration:
122+
Where services are registered in the server project's `Program` file, obtain and bind the secret with [Options configuration](xref:fundamentals/configuration/options):
122123

123124
```csharp
124125
var tenantId = builder.Configuration.GetValue<string>("AzureAd:TenantId")!;
@@ -142,7 +143,7 @@ if (!context.HostingEnvironment.IsDevelopment())
142143
}
143144
```
144145

145-
In the `AzureAd` section of `appsettings.json` in the server project, confirm the presence of the app's Entra ID `TenantId` and add the following `VaultUri` configuration key and value if `VaultUri` configuration isn't already present:
146+
In the `AzureAd` section of `appsettings.json` in the server project, confirm the presence of the app's Entra ID `TenantId` and add the following `VaultUri` configuration key and value, if it isn't already present:
146147

147148
```json
148149
"VaultUri": "{VAULT URI}"

aspnetcore/blazor/security/blazor-web-app-with-entra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ To create a key vault and set a client secret, see [About Azure Key Vault secret
156156
> [!IMPORTANT]
157157
> A key vault secret is created with an expiration date. Be sure to track when a key vault secret is going to expire and create a new secret for the app prior to that date passing.
158158
159-
The following `GetKeyVaultSecret` method retrieves a secret from a key vault. Add this method to the server project. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
159+
Add the following `AzureHelper` class to the server project. The `GetKeyVaultSecret` method retrieves a secret from a key vault. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
160160

161161
`Helpers/AzureHelper.cs`:
162162

aspnetcore/blazor/security/webassembly/standalone-with-identity/account-confirmation-and-password-recovery.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ Confirm in the Azure or Entra portal that the app has been granted access to the
9494

9595
> [!IMPORTANT]
9696
> A key vault secret is created with an expiration date. Be sure to track when a key vault secret is going to expire and create a new secret for the app prior to that date passing.
97-
The following `GetKeyVaultSecret` method retrieves a secret from a key vault. Add this method to the server project. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
9897
9998
Add the following packages to the server project:
10099

101100
* [`Azure.Identity`](https://www.nuget.org/packages/Azure.Identity)
102101
* [`Azure.Security.KeyVault.Secrets`](https://www.nuget.org/packages/Azure.Security.KeyVault.Secrets)
103102

104-
Add the following `AzureHelper` class to the project.
103+
Add the following `AzureHelper` class to the server project. The `GetKeyVaultSecret` method retrieves a secret from a key vault. Adjust the namespace (`BlazorSample.Helpers`) to match your project namespace scheme.
105104

106105
`Helpers/AzureHelper.cs`:
107106

@@ -131,7 +130,7 @@ public static class AzureHelper
131130
}
132131
```
133132

134-
Where services are registered in the server project's `Program` file, obtain and bind the secret with Options configuration:
133+
Where services are registered in the server project's `Program` file, obtain and bind the secret with [Options configuration](xref:fundamentals/configuration/options):
135134

136135
```csharp
137136
var tenantId = builder.Configuration.GetValue<string>("AzureAd:TenantId")!;
@@ -155,7 +154,7 @@ if (!context.HostingEnvironment.IsDevelopment())
155154
}
156155
```
157156

158-
In the `AzureAd` section, which you may need to add if it isn't already present, of `appsettings.json` in the server project, add the following `TenantId` and `VaultUri` configuration keys and values if they aren't already present:
157+
In the `AzureAd` section, which you may need to add if it isn't already present, of `appsettings.json` in the server project, add the following `TenantId` and `VaultUri` configuration keys and values, if they aren't already present:
159158

160159
```json
161160
"AzureAd": {

0 commit comments

Comments
 (0)