Align scope used by client and server in blazor wasm template (#24894)
This commit is contained in:
parent
c3a12cefae
commit
7acb96af5e
|
|
@ -38,7 +38,7 @@ namespace ComponentsWebAssembly_CSharp.Server.Controllers
|
||||||
private readonly ILogger<WeatherForecastController> _logger;
|
private readonly ILogger<WeatherForecastController> _logger;
|
||||||
|
|
||||||
// The Web API will only accept tokens 1) for users, and 2) having the access_as_user scope for this API
|
// The Web API will only accept tokens 1) for users, and 2) having the access_as_user scope for this API
|
||||||
static readonly string[] scopeRequiredByApi = new string[] { "access_as_user" };
|
static readonly string[] scopeRequiredByApi = new string[] { "api-scope" };
|
||||||
|
|
||||||
#if (GenerateApi)
|
#if (GenerateApi)
|
||||||
private readonly IDownstreamWebApi _downstreamWebApi;
|
private readonly IDownstreamWebApi _downstreamWebApi;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue