Skip to content

Commit 3041519

Browse files
author
Kalyan Krishna
committed
merged with master
2 parents e36935f + 12e5980 commit 3041519

File tree

121 files changed

+4456
-2943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+4456
-2943
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,8 @@
9696
/4-WebApp-your-API/TodoListService/obj
9797
/4-WebApp-your-API/TodoListService/bin
9898
/4-WebApp-your-API/Client/obj
99+
/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/bin/Debug/netcoreapp2.2
100+
/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/obj
101+
/2-WebApp-graph-user/2-4-Sovereign-Call-MSGraph/bin/Release/netcoreapp2.2
102+
/Microsoft.Identity.Web.Test/bin/Release/netcoreapp2.2
103+
/Microsoft.Identity.Web.Test/obj

1-WebApp-OIDC/1-1-MyOrg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ cd "1-WebApp-OIDC\1-1-MyOrg"
136136
by this line:
137137
138138
```CSharp
139-
services.AddAzureAdV2Authentication(Configuration);
139+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
140140
```
141141
142142
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.

1-WebApp-OIDC/1-1-MyOrg/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
3131
});
3232

3333
// Sign-in users with the Microsoft identity platform
34-
services.AddAzureAdV2Authentication(Configuration);
34+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
3535

3636
services.AddMvc(options =>
3737
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ The actual sign-in audience (accounts to sign-in) is the lowest set of what is s
4848

4949
In order to restrict users from specific organizations to sign-in to your web app, you'll need to follow the steps above, and customize a bit more the code to restrict the valid token issuers. The token issuers are really the tenanted Azure AD authority which are allowed to issue a token to access your web application.
5050

51-
In the `Startup.cs` file, in the `ConfigureServices` method, after `services.AddAzureAdV2Authentication(Configuration)` add some code to validate specific issuers by overriding the `TokenValidationParameters.IssuerValidator` delegate.
51+
In the `Startup.cs` file, in the `ConfigureServices` method, after `services.AddMicrosoftIdentityPlatformAuthentication(Configuration)` add some code to validate specific issuers by overriding the `TokenValidationParameters.IssuerValidator` delegate.
5252

5353
```CSharp
5454
public void ConfigureServices(IServiceCollection services)
5555
{
5656
...
5757
// Sign-in users with the Microsoft identity platform
58-
services.AddAzureAdV2Authentication(Configuration);
58+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
5959

6060
// Restrict users to specific belonging to specific tenants
6161
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ cd "1-WebApp-OIDC\1-2-AnyOrg"
136136
by this line:
137137
138138
```CSharp
139-
services.AddAzureAdV2Authentication(Configuration);
139+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
140140
```
141141
142142
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.

1-WebApp-OIDC/1-2-AnyOrg/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
3131
});
3232

3333
// Sign-in users with the Microsoft identity platform
34-
services.AddAzureAdV2Authentication(Configuration);
34+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
3535

3636
services.AddMvc(options =>
3737
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ In the **appsettings.json** file:
150150
by this line:
151151
152152
```CSharp
153-
services.AddAzureAdV2Authentication(Configuration);
153+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
154154
```
155155
156156
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.

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
3131
});
3232

3333
// Sign-in users with the Microsoft identity platform
34-
services.AddAzureAdV2Authentication(Configuration);
34+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
3535

3636
services.AddMvc(options =>
3737
{

1-WebApp-OIDC/1-4-Sovereign/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ cd "1-WebApp-OIDC\1-4-Sovereign"
124124
by this line:
125125
126126
```CSharp
127-
services.AddAzureAdV2Authentication(Configuration);
127+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
128128
```
129129
130130
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.

1-WebApp-OIDC/1-4-Sovereign/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ConfigureServices(IServiceCollection services)
3131
});
3232

3333
// Sign-in users with the Microsoft identity platform
34-
services.AddAzureAdV2Authentication(Configuration);
34+
services.AddMicrosoftIdentityPlatformAuthentication(Configuration);
3535

3636
services.AddMvc(options =>
3737
{

0 commit comments

Comments
 (0)