akhanalcs / blazor-server-auth

Demonstrates how to add Identity to existing Blazor Server projects.
13 stars 4 forks source link

See stackoverflow but the app doesn't work #1

Open Mochuisle04 opened 1 year ago

Mochuisle04 commented 1 year ago

Maybe you can take a look but the AD based app doesn't work

Mochuisle04 commented 1 year ago

You need to replace: @attribute [Authorize(Roles = "Administrators")] With the actual Role you have like @attribute [Authorize(Roles = $"{RoleNames.Admin}