Skip to content

Commit 7acb96a

Browse files
author
John Luo
authored
Align scope used by client and server in blazor wasm template (#24894)
1 parent c3a12ce commit 7acb96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Controllers/WeatherForecastController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class WeatherForecastController : ControllerBase
3838
private readonly ILogger<WeatherForecastController> _logger;
3939

4040
// The Web API will only accept tokens 1) for users, and 2) having the access_as_user scope for this API
41-
static readonly string[] scopeRequiredByApi = new string[] { "access_as_user" };
41+
static readonly string[] scopeRequiredByApi = new string[] { "api-scope" };
4242

4343
#if (GenerateApi)
4444
private readonly IDownstreamWebApi _downstreamWebApi;

0 commit comments

Comments
 (0)