Hook for OAuth 2 OIDC

I have added MiniProfiler to my ASP.NET Core Web API service.

This service is called by a SPA application. The application passes a Bearer Token back to the service. (Using Open ID Connect (OIDC).

Is there a way to hook into the UI (results-index, etc) so that it can be secured via OIDC?

Basically, I am hoping I can add a oidc javascript file to the html.