OpenId Connect For Azure App Service - Web API
I am building a ASP.NET Core Web API (C#) that gets deployed in Azure App Service. I am using PING Federate authentication ( configured via OpenID Connect configuration within the Azure App Service). Without any additional code, if I deploy a sample Web Application, the Web Application gets authenticated successfully. But when I deploy a Web API, it throws 401 error, when the deployed API is accessed from a front end application. The user.IsAuthenticated is always false.
Please help to address the following issues--
How will I get the API authenticated by default when called from a Front end application (single sign on - Kerberos is enabled)?
How will I get the logged in User Identity within the API code?