79118289

Date: 2024-10-23 14:13:26
Score: 1
Natty:
Report link

Mike's answer was the one I needed, however I was getting this error:

ArgumentNullException: IDW10106: The 'ClientId' option must be provided.

So I needed to manually bind the AzureAd config section to the identityOptions:

.AddMicrosoftIdentityWebApp(identityOptions => 
      /* {identityOptions.ClientId ="";}, // if you want to specify the options manually instead of Configuration.GetSection() call*/
      builder.Configuration.GetSection("AzureAd").Bind(identityOptions),
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: batface