Skip to content

Commit 7968e4a

Browse files
committed
Updates
1 parent ff25b93 commit 7968e4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ We strongly recommend that you avoid storing client secrets in project code or c
112112

113113
The [Secret Manager tool](xref:security/app-secrets) can store the server app's client secret under the configuration key `AzureAd:ClientSecret`.
114114

115+
The [sample app](#sample-app) has already been initialized for the Secret Manager tool, where a user secrets Id (`<UserSecretsId>`) is already present in the app's project file (`.csproj`). If you're working with an app that hasn't been initialized, use the following command from the server project's directory to establish a user secrets Id:
116+
117+
```dotnetcli
118+
dotnet user-secrets init
119+
```
120+
115121
Execute the following command in a command shell from the server project's directory, such as the Developer PowerShell command shell in Visual Studio. The `{SECRET}` placeholder is the client secret obtained from the app's registration:
116122

117123
```dotnetcli

0 commit comments

Comments
 (0)