0

I have an Angular 8 app hosted inside an Azure App Service, that I have got authentication using MSAL and the tokens are being passed to another Azure App Service which is hosting my custom web api (.net core 3.1).

I call a not authorized endpoint and it works, but when I call an authorized end point I get different errors, latest one coming is

System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]

I have configured App Registrations for both apps with implicit grant enabled and Id and access tokens are also enabled, and its a multitenant application.

API Config

enter image description here

enter image description here

Angular config

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
Aadil
  • 71
  • 1
  • 9
  • Please do not add to your questions how long you have been stuck. The only purpose of such additions is to indicate distress to readers and hope that they can be coerced into helping you quickly. Given that most helpers here are volunteers, that is probably inappropriate. Thanks! – halfer Apr 15 '20 at 11:02

1 Answers1

0

Please check your API for token validation logic. Also make sure token in getting sent in request header.