From 2063ecf7472ea5a0484d475e4b86a0eaf854f775 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 27 Feb 2023 06:23:37 -0600 Subject: [PATCH] Update WeatherForecast controller (#28506) --- .../security/webassembly/hosted-with-azure-active-directory.md | 2 ++ 1 file changed, 2 insertions(+) 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]