Skip to content

Commit 3c479b0

Browse files
authored
Minor ReadMe updates and config files for Secret Manager (#379)
1 parent c596200 commit 3c479b0

28 files changed

+183
-27
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets"
5+
}
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets.user"
5+
}
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets"
5+
}
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets.user"
5+
}
6+
}
7+
}

1-WebApp-OIDC/1-2-AnyOrg/README-1-1-to-1-2.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ In the `Startup.cs` file, in the `ConfigureServices` method, after `services.Add
6464
{
6565
...
6666
// Sign-in users with the Microsoft identity platform
67-
services.AddMicrosoftWebAppAuthentication(Configuration, options =>
68-
{
69-
Configuration.Bind("AzureAd", options);
70-
// Restrict users to specific belonging to specific tenants
71-
options.TokenValidationParameters.IssuerValidator = ValidateSpecificIssuers;
72-
}, options => Configuration.Bind("AzureAd", options));
67+
services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
68+
.AddMicrosoftWebApp(options =>
69+
{
70+
Configuration.Bind("AzureAd", options);
71+
// Restrict users to specific belonging to specific tenants
72+
options.TokenValidationParameters.IssuerValidator = ValidateSpecificIssuers;
73+
});
7374
...
7475
```
7576

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets"
5+
}
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets.user"
5+
}
6+
}
7+
}

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,15 @@ In the **appsettings.json** file:
147147
.AddAzureAD(options => Configuration.Bind("AzureAd", options));
148148
```
149149
150-
by this line:
150+
- by this line:
151151
152152
```CSharp
153-
154-
services.AddMicrosoftWebAppAuthentication(Configuration);
155-
153+
services.AddMicrosoftWebAppAuthentication(Configuration);
156154
```
157155
158-
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.
156+
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.
159157
160-
1. Change the `Properties\launchSettings.json` file to ensure that you start your web app from <https://localhost:44321> as registered. For this:
158+
1. Change the `Properties\launchSettings.json` file to ensure that you start your web app from <https://localhost:44321> as registered. For this:
161159
- update the `sslPort` of the `iisSettings` section to be `44321`
162160
- in the `applicationUrl` property of use `https://localhost:44321`
163161
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets"
5+
}
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"secrets1": {
4+
"type": "secrets.user"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)