Skip to content

Commit 9e489c6

Browse files
1 parent 975769f commit 9e489c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ namespace ComponentsWebAssembly_CSharp.Server.Controllers;
2121
#endif
2222
[ApiController]
2323
[Route("[controller]")]
24-
#if (OrganizationalAuth || IndividualB2CAuth)
24+
#if (OrganizationalAuth)
2525
[RequiredScope(RequiredScopesConfigurationKey = "AzureAd:Scopes")]
26+
#elseif (IndividualB2CAuth)
27+
[RequiredScope(RequiredScopesConfigurationKey = "AzureAdB2C:Scopes")]
2628
#endif
2729
public class WeatherForecastController : ControllerBase
2830
{

0 commit comments

Comments
 (0)