I have an Angular app that uses Okta to manage user logins and connects to an .NET Core Web API. The Angular app sends the Okta auth token along with all API requests. The API is meant to validate the auth token before processing the request and extract the uid.
I followed the directions on the Okta Dev website here:
On my dev machine, everything works perfectly. However, once the API is deployed to Azure, this line in the ValidateToken
method fails every time:
var discoveryDocument = await configurationManager.GetConfigurationAsync(ct);
That line is throwing an IDX20803 error. The authorization server passed into the confiurationManager
and the Azure server both share the same domain, so I don’t think there would be a firewall or proxy issue. Has anyone else had similar issues with the GetConfigurationAsync
method, and if so, how did you solve it?