diff --git a/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory.md b/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory.md index 51239469ec..84b68b6238 100644 --- a/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory.md +++ b/aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory.md @@ -219,6 +219,7 @@ The WeatherForecast controller (`Controllers/WeatherForecastController.cs`) expo [Authorize] [ApiController] [Route("[controller]")] +[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")] public class WeatherForecastController : ControllerBase { [HttpGet] @@ -627,6 +628,7 @@ The WeatherForecast controller (`Controllers/WeatherForecastController.cs`) expo [Authorize] [ApiController] [Route("[controller]")] +[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")] public class WeatherForecastController : ControllerBase { [HttpGet]