I have an MVC client of .Net core which uses identityserver 4.
Methods which returns view is protected by authorize attribute.
But how to call web API (which is separate project running on different URL) with same authenticated data which MVC client has?
Or will I have to authenticate again using oidc javascript client?
Is there any way I can get bearer token from already authenticated MVC client to authorize my javascript client to access web API?