Skip to content

Commit

Permalink
Update AuthZ section for OIDC complaince
Browse files Browse the repository at this point in the history
  • Loading branch information
jerriep committed Jul 18, 2017
1 parent d2b5b4b commit 28d2ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Quickstart/05-Authorization/SampleMvcApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
// Set the correct name claim type
TokenValidationParameters = new TokenValidationParameters
{
NameClaimType = "name"
NameClaimType = "name",
RoleClaimType = "https://schemas.quickstarts.com/roles"
},

Events = new OpenIdConnectEvents
Expand Down Expand Up @@ -129,8 +130,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
options.Scope.Clear();
options.Scope.Add("openid");
options.Scope.Add("profile");
options.Scope.Add("email");
options.Scope.Add("roles");
app.UseOpenIdConnectAuthentication(options);

app.UseMvc(routes =>
Expand Down
2 changes: 1 addition & 1 deletion Quickstart/05-Authorization/SampleMvcApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"Domain": "{DOMAIN}",
"ClientId": "{CLIENT_ID}",
"ClientSecret": "{CLIENT_SECRET}",
"CallbackUrl": "http://localhost:60856/signin-auth0"
"CallbackUrl": "http://localhost:5000/signin-auth0"
}
}

0 comments on commit 28d2ba5

Please sign in to comment.