When you generate a Blazor client, the appsettings.XXX.json contains:
"OAuth2.Client.Settings": {
...
}
... but Program.cs contains:
builder.Configuration.Bind("Blazor.OAuth2.Client.Settings", options.ProviderOptions.Authentication);
foreach (var scope in builder.Configuration["OAuth2.Settings:Scopes"].Split(new[] { ',' }))
The minimal change is to change OAuth2 to Blazor.OAuth2.Client in Program.cs in the second string and to rename OAuth2.Client.Settings in all the json files.
When you generate a Blazor client, the appsettings.XXX.json contains:
... but Program.cs contains:
The minimal change is to change
OAuth2
toBlazor.OAuth2.Client
inProgram.cs
in the second string and to renameOAuth2.Client.Settings
in all the json files.