Skip to content

Commit 7664665

Browse files
author
Kalyan Krishna
committed
Groups sample work done
1 parent 3b568b9 commit 7664665

File tree

7 files changed

+167
-130
lines changed

7 files changed

+167
-130
lines changed

5-WebApp-AuthZ/5-2-Groups/AppCreationScripts/AppCreationScripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Registering the sample apps with Microsoft Identity Platform and updating the configuration files using PowerShell scripts
1+
# Registering the sample apps with Microsoft identity platform and updating the configuration files using PowerShell scripts
22

33
## Overview
44

5-WebApp-AuthZ/5-2-Groups/AppCreationScripts/Quickstart.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Sample": {
77
"Title": "Add authorization using groups & group claims to an ASP.NET Core Web app thats signs-in users with the Microsoft identity platform",
88
"Level": 400,
9-
"Client": "ASP.NET Core 2.x Web App"
9+
"Client": "ASP.NET Core Web App"
1010
},
1111
"AppRegistrations": [
1212
{
@@ -15,7 +15,7 @@
1515
"x-ms-version": "2.0",
1616
"replyUrlsWithType": [
1717
{
18-
"url": "urn:ietf:wg:oauth:2.0:oob",
18+
"url": "https://login.microsoftonline.com/common/oauth2/nativeclient",
1919
"type": "InstalledClient"
2020
}
2121
],

5-WebApp-AuthZ/5-2-Groups/AppCreationScripts/sample.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"Sample": {
3-
"Title": "Add authorization using groups & group claims to an ASP.NET Core Web app thats signs-in users with the Microsoft identity platform",
3+
"Title": "Add authorization using groups & group claims to an ASP.NET Core Web app that signs-in users with the Microsoft identity platform",
44
"Level": 400,
5-
"Client": "ASP.NET Core 2.x Web App",
5+
"Client": "ASP.NET Core Web App",
66
"Service": "Microsoft Graph",
77
"RepositoryUrl": "microsoft-identity-platform-aspnetcore-webapp-tutorial",
88
"Endpoint": "AAD v2.0"
@@ -62,4 +62,4 @@
6262
]
6363
}
6464
]
65-
}
65+
}

5-WebApp-AuthZ/5-2-Groups/README-incremental-instructions.md

Lines changed: 49 additions & 41 deletions
Large diffs are not rendered by default.

5-WebApp-AuthZ/5-2-Groups/README.md

Lines changed: 109 additions & 80 deletions
Large diffs are not rendered by default.

5-WebApp-AuthZ/5-2-Groups/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public void ConfigureServices(IServiceCollection services)
4040

4141
services.AddMSGraphService(Configuration);
4242

43-
// Uncomment the following lines code instruct the asp.net core middleware to use the data in the "groups" claim in the Authorize attribute and User.IsInrole()
44-
// See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-2.2 for more info.
43+
// Uncomment the following lines code instruct the asp.net core middleware to use the data in the "groups" claim in the [Authorize] attribute and for User.IsInrole()
44+
// See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles for more info.
4545
//services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
4646
//{
4747
// // Use the groups claim for populating roles

5-WebApp-AuthZ/5-2-Groups/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<ItemGroup>
2121
<PackageReference Include="Microsoft.AspNetCore.Authentication.AzureAD.UI" Version="3.0.0" />
22-
<PackageReference Include="Microsoft.Graph" Version="1.16.0" />
22+
<PackageReference Include="Microsoft.Graph" Version="1.21.0" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)